diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-05-06 02:40:35 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-05-06 02:41:35 +0800 |
commit | a3230d60c287eed2b9323179963b08ea4c0a6835 (patch) | |
tree | a69b2e5444b67d994a039923007d9d9d5321243e /docs/style-guide.rst | |
parent | f364dcf719d4ced0a445713ffd58b40c77cd6dac (diff) | |
download | dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.tar dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.tar.gz dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.tar.bz2 dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.tar.lz dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.tar.xz dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.tar.zst dexon-solidity-a3230d60c287eed2b9323179963b08ea4c0a6835.zip |
Made the style consistent
Diffstat (limited to 'docs/style-guide.rst')
-rw-r--r-- | docs/style-guide.rst | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst index c36efe2c..0ee2dddc 100644 --- a/docs/style-guide.rst +++ b/docs/style-guide.rst @@ -157,15 +157,23 @@ Avoid extraneous whitespace in the following situations: * Immediately inside parenthesis, brackets or braces. -Yes: `spam(ham[1], Coin({name: "ham"}));` +Yes:: + + spam(ham[1], Coin({name: "ham"})); + +No:: -No: `spam( ham[ 1 ], Coin( { name: "ham" } ) );` + spam( ham[ 1 ], Coin( { name: "ham" } ) );` * Immediately before a comma, semicolon: -Yes: `function spam(uint i, Coin coin);` +Yes:: + + function spam(uint i, Coin coin); + +No:: -No: `function spam(uint i , Coin coin) ;` + function spam(uint i , Coin coin) ; * More than one space around an assignment or other operator to align with another: |