aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style-guide.rst
diff options
context:
space:
mode:
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: