aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-05-06 22:19:28 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-05-06 22:19:28 +0800
commit7e94a1d84d60791d2d1aeec73eae13d58120331f (patch)
treeac161e62d92e5e4d1c1ccad29d343696d483eb14 /docs
parent7f940e498e99346e7d9afa47e773dcd7ea9ebd18 (diff)
downloaddexon-solidity-7e94a1d84d60791d2d1aeec73eae13d58120331f.tar.gz
dexon-solidity-7e94a1d84d60791d2d1aeec73eae13d58120331f.tar.zst
dexon-solidity-7e94a1d84d60791d2d1aeec73eae13d58120331f.zip
Added a clause about short functions
Diffstat (limited to 'docs')
-rw-r--r--docs/style-guide.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index bc32f891..ef2c334f 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -482,6 +482,11 @@ No::
}
}
+When declaring short functions with a single statement, it is permissible to do it on a single line.
+
+Permissible::
+
+ function shortFunction() { doSomething(); }
These guidelines for function declarations are intended to improve readability.
Authors should use their best judgement as this guide does not try to cover all