diff options
author | chriseth <chris@ethereum.org> | 2017-06-16 00:36:16 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-24 01:29:11 +0800 |
commit | 7f05ef8acac2cc6ef1df70d31205e72422540272 (patch) | |
tree | fceb406dd96418c2706b01aa435a14ce8065c957 /docs/miscellaneous.rst | |
parent | 25fc8ad9b996566ac3d6ab80859851af2526c63d (diff) | |
download | dexon-solidity-7f05ef8acac2cc6ef1df70d31205e72422540272.tar.gz dexon-solidity-7f05ef8acac2cc6ef1df70d31205e72422540272.tar.zst dexon-solidity-7f05ef8acac2cc6ef1df70d31205e72422540272.zip |
Clarify exceptions.
Diffstat (limited to 'docs/miscellaneous.rst')
-rw-r--r-- | docs/miscellaneous.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index 17f2dcf9..182de33a 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -464,7 +464,7 @@ Global Variables - ``tx.gasprice`` (``uint``): gas price of the transaction - ``tx.origin`` (``address``): sender of the transaction (full call chain) - ``assert(bool condition)``: abort execution and revert state changes if condition is ``false`` (use for internal error) -- ``require(bool condition)``: abort execution and revert state changes if condition is ``false`` (use for malformed input) +- ``require(bool condition)``: abort execution and revert state changes if condition is ``false`` (use for malformed input or error in external component) - ``revert()``: abort execution and revert state changes - ``keccak256(...) returns (bytes32)``: compute the Ethereum-SHA-3 (Keccak-256) hash of the (tightly packed) arguments - ``sha3(...) returns (bytes32)``: an alias to `keccak256()` |