about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-09-03 01:56:53 -0700
committerJosh Triplett <josh@joshtriplett.org>2025-09-03 01:56:53 -0700
commitdf324fa7c8f96ed064f90c7b24c31d605eedc9b8 (patch)
tree4bbcfc3f0f53e450613b468bac78c9210956950c /src
parent3715fc623a8464d27601309693b826063564bfcd (diff)
downloadrust-df324fa7c8f96ed064f90c7b24c31d605eedc9b8.tar.gz
rust-df324fa7c8f96ed064f90c7b24c31d605eedc9b8.zip
Add note about trailing whitespace in string literals.
Diffstat (limited to 'src')
-rw-r--r--src/doc/style-guide/src/README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/doc/style-guide/src/README.md b/src/doc/style-guide/src/README.md
index a20f62d65a5..c3788c97ae6 100644
--- a/src/doc/style-guide/src/README.md
+++ b/src/doc/style-guide/src/README.md
@@ -115,7 +115,10 @@ fn baz() {}
 ### Trailing whitespace
 
 Do not include trailing whitespace on the end of any line. This includes blank
-lines, comment lines, and code lines.
+lines, comment lines, code lines, and string literals.
+
+Note that avoiding trailing whitespace in string literals requires care to
+preserve the value of the literal.
 
 ### Sorting