diff options
author | Yoichi Hirai <yhirai@pira.jp> | 2016-09-06 00:28:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 00:28:32 +0800 |
commit | e2b787cdd0717bf074cc03634d580f7713568792 (patch) | |
tree | e743ce24ef9f7eb1df0ada36b79cde685384b8e3 /docs/contracts.rst | |
parent | be6a5f44d7ac4d63eb249988eb8e467fb15f5af4 (diff) | |
parent | 3b2174f7a82fec7ed8ef2e55ec00996fac32c948 (diff) | |
download | dexon-solidity-e2b787cdd0717bf074cc03634d580f7713568792.tar.gz dexon-solidity-e2b787cdd0717bf074cc03634d580f7713568792.tar.zst dexon-solidity-e2b787cdd0717bf074cc03634d580f7713568792.zip |
Merge pull request #1005 from ethereum/modifierbody
Require ";" after "_"
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r-- | docs/contracts.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index a22a3544..dfa79e79 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -321,7 +321,7 @@ inheritable properties of contracts and may be overridden by derived contracts. modifier onlyOwner { if (msg.sender != owner) throw; - _ + _; } } @@ -341,7 +341,7 @@ inheritable properties of contracts and may be overridden by derived contracts. // Modifiers can receive arguments: modifier costs(uint price) { if (msg.value >= price) { - _ + _; } } } @@ -367,7 +367,7 @@ inheritable properties of contracts and may be overridden by derived contracts. modifier noReentrancy() { if (locked) throw; locked = true; - _ + _; locked = false; } |