Skip to content

Commit df324fa

Browse files
committed
Add note about trailing whitespace in string literals.
1 parent 3715fc6 commit df324fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/style-guide/src/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ fn baz() {}
115115
### Trailing whitespace
116116

117117
Do not include trailing whitespace on the end of any line. This includes blank
118-
lines, comment lines, and code lines.
118+
lines, comment lines, code lines, and string literals.
119+
120+
Note that avoiding trailing whitespace in string literals requires care to
121+
preserve the value of the literal.
119122

120123
### Sorting
121124

0 commit comments

Comments
 (0)