aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorethers <ethereum@outlook.com>2016-11-18 10:13:33 +0800
committerGitHub <noreply@github.com>2016-11-18 10:13:33 +0800
commit1d9aee97c2532d57bd27e65f8b22079ebbe71e3a (patch)
tree05bf71c3ad77abbbf420dd2f84ce2855c81d8698 /docs
parent549bca149408262341375f39a75e878e68d2df6b (diff)
downloaddexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.tar
dexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.tar.gz
dexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.tar.bz2
dexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.tar.lz
dexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.tar.xz
dexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.tar.zst
dexon-solidity-1d9aee97c2532d57bd27e65f8b22079ebbe71e3a.zip
styleguide: Don't include a whitespace in the fallback function
Diffstat (limited to 'docs')
-rw-r--r--docs/style-guide.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index b0560917..46b915e1 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -262,6 +262,19 @@ No::
y = 2;
long_variable = 3;
+Don't include a whitespace in the fallback function:
+
+Yes::
+
+ function() {
+ ...
+ }
+
+No::
+
+ function () {
+ ...
+ }
Control Structures
==================