aboutsummaryrefslogtreecommitdiffstats
path: root/docs/control-structures.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-10 00:32:48 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-02-11 06:42:33 +0800
commit28a7b1e019dc6f694d0615d7ef1220f19c10e861 (patch)
tree1af96f37cbfeb3672905f77117950aeed8a797ca /docs/control-structures.rst
parent586d156f33c78469f3272b4e8b8eae4f6229d04e (diff)
downloaddexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.gz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.bz2
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.lz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.xz
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.tar.zst
dexon-solidity-28a7b1e019dc6f694d0615d7ef1220f19c10e861.zip
Document revert()
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r--docs/control-structures.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index ff0a48ec..df8ac729 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -400,7 +400,7 @@ While a user-provided exception is generated in the following situations:
#. Calling ``throw``.
#. The condition of ``assert(condition)`` is not met.
-Internally, Solidity performs an "invalid jump" when a user-provided exception is thrown. In contrast, it performs an invalid operation
+Internally, Solidity performs a revert operation (instruction ``0xfd``) when a user-provided exception is thrown. In contrast, it performs an invalid operation
(instruction ``0xfe``) if a runtime exception is encountered. In both cases, this causes
the EVM to revert all changes made to the state. The reason for this is that there is no safe way to continue execution, because an expected effect
did not occur. Because we want to retain the atomicity of transactions, the safest thing to do is to revert all changes and make the whole transaction