diff options
author | chriseth <chris@ethereum.org> | 2018-04-13 02:13:16 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-13 02:13:16 +0800 |
commit | 966367305ad511900bedfd9af08114a0b1307399 (patch) | |
tree | 102ea2f5e50ea41c5e9ee05a2bdef13fb0082790 /docs | |
parent | b25598126e57fca73058edd722eef7c681460557 (diff) | |
download | dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.tar dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.tar.gz dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.tar.bz2 dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.tar.lz dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.tar.xz dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.tar.zst dexon-solidity-966367305ad511900bedfd9af08114a0b1307399.zip |
Remove dead code and clarify throw.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/control-structures.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 7024a684..879e26f7 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -457,7 +457,7 @@ If used properly, analysis tools can evaluate your contract to identify the cond There are two other ways to trigger exceptions: The ``revert`` function can be used to flag an error and revert the current call. It is possible to provide a string message containing details about the error that will be passed back to the caller. -The ``throw`` keyword can also be used as an alternative to ``revert()``, but is deprecated. +The deprecated keyword ``throw`` can also be used as an alternative to ``revert()`` (but only without error message). .. note:: From version 0.4.13 the ``throw`` keyword is deprecated and will be phased out in the future. |