diff options
author | chriseth <chris@ethereum.org> | 2016-09-01 04:34:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-01 04:34:44 +0800 |
commit | 18abafe029a2eb4628136f7a944c80265da3ece4 (patch) | |
tree | 010c8a38e9541bf0d0bf5a3e29ae046931267402 /docs/common-patterns.rst | |
parent | 58dbd162ab369e9dd69af0b2a45a386527ed7b58 (diff) | |
parent | a8c5d2bbde73e13dc2fc2e002bab0bd39536f162 (diff) | |
download | dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.gz dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.tar.zst dexon-solidity-18abafe029a2eb4628136f7a944c80265da3ece4.zip |
Merge pull request #960 from Denton-L/change-else-style
Change else style
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; } } |