Skip to content

Commit 2a492f5

Browse files
committed
Add double-quotes to style guide
1 parent f2389b3 commit 2a492f5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/style-guide.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Source File Encoding
118118
UTF-8 or ASCII encoding is preferred.
119119

120120
Imports
121-
==========
121+
=======
122122

123123
Import statements should always be placed at the top of the file.
124124

@@ -519,6 +519,18 @@ No::
519519
Other Recommendations
520520
=====================
521521

522+
* Strings should be quoted with double-quotes instead of single-quotes.
523+
524+
Yes::
525+
526+
str = "foo";
527+
str = "Hamlet says, 'To be or not to be...'";
528+
529+
No::
530+
531+
str = 'bar';
532+
str = '"Be yourself; everyone else is already taken." -Oscar Wilde';
533+
522534
* Surround operators with a single space on either side.
523535

524536
Yes::

0 commit comments

Comments
 (0)