aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-10 17:48:29 +0800
committerGitHub <noreply@github.com>2018-04-10 17:48:29 +0800
commit0546a36acadee769b2f7ab6b86a1cf2e1da860ba (patch)
treec385fe6167dc82129b2daeadfff69554588af29f /docs
parentb52614116e9c72d840b375b0bbb1c56a63df3680 (diff)
parent089c295641bb640608b0dda5e62bf2ba574391c6 (diff)
downloaddexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.tar
dexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.tar.gz
dexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.tar.bz2
dexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.tar.lz
dexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.tar.xz
dexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.tar.zst
dexon-solidity-0546a36acadee769b2f7ab6b86a1cf2e1da860ba.zip
Merge pull request #3836 from netrunnerX/develop
Update solidity-by-example.rst.
Diffstat (limited to 'docs')
-rw-r--r--docs/solidity-by-example.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index 27fefd49..3636a332 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -89,11 +89,10 @@ of votes.
function giveRightToVote(address voter) public {
// If the argument of `require` evaluates to `false`,
// it terminates and reverts all changes to
- // the state and to Ether balances. It is often
- // a good idea to use this if functions are
- // called incorrectly. But watch out, this
- // will currently also consume all provided gas
- // (this is planned to change in the future).
+ // the state and to Ether balances.
+ // This consumes all gas in old EVM versions, but not anymore.
+ // It is often a good idea to use this if functions are
+ // called incorrectly.
require(
(msg.sender == chairperson) &&
!voters[voter].voted &&