diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-25 03:28:07 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-27 01:33:42 +0800 |
commit | 532266b89e07d37115d160d3d1148b50e4fb1dfc (patch) | |
tree | 1f0be9568ebd277e07275b4baf0b1c214cb644a9 /docs/common-patterns.rst | |
parent | f1e6bc2eaa452412e8050f72ff14ad738dbe49bc (diff) | |
download | dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.gz dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.bz2 dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.lz dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.xz dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.tar.zst dexon-solidity-532266b89e07d37115d160d3d1148b50e4fb1dfc.zip |
Use new style for the docs
Diffstat (limited to 'docs/common-patterns.rst')
-rw-r--r-- | docs/common-patterns.rst | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/common-patterns.rst b/docs/common-patterns.rst index 74f9c078..531a94ad 100644 --- a/docs/common-patterns.rst +++ b/docs/common-patterns.rst @@ -45,8 +45,7 @@ become the new richest. richest = msg.sender; mostSent = msg.value; return true; - } - else { + } else { return false; } } @@ -58,8 +57,7 @@ become the new richest. pendingWithdrawals[msg.sender] = 0; if (msg.sender.send(amount)) { return true; - } - else { + } else { pendingWithdrawals[msg.sender] = amount; return false; } @@ -90,8 +88,7 @@ This is as opposed to the more intuitive sending pattern. richest = msg.sender; mostSent = msg.value; return true; - } - else { + } else { return false; } } |