aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style-guide.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-06 02:40:35 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-06 02:41:35 +0800
commita3230d60c287eed2b9323179963b08ea4c0a6835 (patch)
treea69b2e5444b67d994a039923007d9d9d5321243e /docs/style-guide.rst
parentf364dcf719d4ced0a445713ffd58b40c77cd6dac (diff)
downloaddexon-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.rst16
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: