diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-08-10 23:48:23 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-08-11 23:10:47 +0800 |
commit | 2a492f59c911b46e46b2c200e966e1cf95721aa0 (patch) | |
tree | 2054dc3a07eb264e6cf6c33c930522cb65d4286f /docs/style-guide.rst | |
parent | f2389b33143c81b535aecd2fdcdb1f4ea916f951 (diff) | |
download | dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar.gz dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar.bz2 dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar.lz dexon-solidity-2a492f59c911b46e46b2c200e966e1cf95721aa0.tar.xz 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.rst | 14 |
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:: |