mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add double-quotes to style guide
This commit is contained in:
parent
f2389b3314
commit
2a492f59c9
@ -118,7 +118,7 @@ Source File Encoding
|
|||||||
UTF-8 or ASCII encoding is preferred.
|
UTF-8 or ASCII encoding is preferred.
|
||||||
|
|
||||||
Imports
|
Imports
|
||||||
==========
|
=======
|
||||||
|
|
||||||
Import statements should always be placed at the top of the file.
|
Import statements should always be placed at the top of the file.
|
||||||
|
|
||||||
@ -519,6 +519,18 @@ No::
|
|||||||
Other Recommendations
|
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.
|
* Surround operators with a single space on either side.
|
||||||
|
|
||||||
Yes::
|
Yes::
|
||||||
|
Loading…
Reference in New Issue
Block a user