aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style-guide.rst
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-10 23:48:23 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-11 23:10:47 +0800
commit2a492f59c911b46e46b2c200e966e1cf95721aa0 (patch)
tree2054dc3a07eb264e6cf6c33c930522cb65d4286f /docs/style-guide.rst
parentf2389b33143c81b535aecd2fdcdb1f4ea916f951 (diff)
downloaddexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar.gz
dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar.zst
dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.zip
Add double-quotes to style guide
Diffstat (limited to 'docs/style-guide.rst')
-rw-r--r--docs/style-guide.rst14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/style-guide.rst b/docs/style-guide.rst
index c509a9d4..c7b13efa 100644
--- a/docs/style-guide.rst
+++ b/docs/style-guide.rst
@@ -118,7 +118,7 @@ Source File Encoding
UTF-8 or ASCII encoding is preferred.
Imports
-==========
+=======
Import statements should always be placed at the top of the file.
@@ -519,6 +519,18 @@ No::
Other Recommendations
=====================
+* Strings should be quoted with double-quotes instead of single-quotes.
+
+Yes::
+
+ str = "foo";
+ str = "Hamlet says, 'To be or not to be...'";
+
+No::
+
+ str = 'bar';
+ str = '"Be yourself; everyone else is already taken." -Oscar Wilde';
+
* Surround operators with a single space on either side.
Yes::