Skip to content

Commit d00a407

Browse files
committed
Clarify that strings aren't magical.
1 parent b6cf5f5 commit d00a407

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/tutorial.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ Characters, the `char` type, are four-byte Unicode codepoints,
343343
whose literals are written between single quotes, as in `'x'`.
344344
Just like C, Rust understands a number of character escapes, using the backslash
345345
character, such as `\n`, `\r`, and `\t`. String literals,
346-
written between double quotes, allow the same escape sequences.
346+
written between double quotes, allow the same escape sequences, and do no
347+
other processing, unlike languages such as PHP or shell.
347348

348349
On the other hand, raw string literals do not process any escape sequences.
349350
They are written as `r##"blah"##`, with a matching number of zero or more `#`

0 commit comments

Comments
 (0)