aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-06 22:36:32 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-12 03:16:18 +0800
commitb6fd6ddc996af702071bee7b8cb75976ae1bc3f3 (patch)
tree462700d4506e48d9da6ef14d3e3ea8b51554a1d7 /docs
parentd4125c4f07b3f33e46cff2429616d50336c77e8c (diff)
downloaddexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.tar
dexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.tar.gz
dexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.tar.bz2
dexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.tar.lz
dexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.tar.xz
dexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.tar.zst
dexon-solidity-b6fd6ddc996af702071bee7b8cb75976ae1bc3f3.zip
Change whitespace section to include exception
For single-line functions, some whitespace padding makes the functions slightly more readable.
Diffstat (limited to 'docs')
-rw-r--r--docs/style-guide.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index a6582b1b..9f1bcad5 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -155,7 +155,7 @@ Whitespace in Expressions
Avoid extraneous whitespace in the following situations:
-Immediately inside parenthesis, brackets or braces.
+Immediately inside parenthesis, brackets or braces, with the exception of single-line function declarations.
Yes::
@@ -165,6 +165,10 @@ No::
spam( ham[ 1 ], Coin( { name: "ham" } ) );`
+Exception::
+
+ function singleLine() { spam(); }
+
Immediately before a comma, semicolon:
Yes::