mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
Clarify that strings aren't magical.
This commit is contained in:
+2
-1
@@ -343,7 +343,8 @@ Characters, the `char` type, are four-byte Unicode codepoints,
|
||||
whose literals are written between single quotes, as in `'x'`.
|
||||
Just like C, Rust understands a number of character escapes, using the backslash
|
||||
character, such as `\n`, `\r`, and `\t`. String literals,
|
||||
written between double quotes, allow the same escape sequences.
|
||||
written between double quotes, allow the same escape sequences, and do no
|
||||
other processing, unlike languages such as PHP or shell.
|
||||
|
||||
On the other hand, raw string literals do not process any escape sequences.
|
||||
They are written as `r##"blah"##`, with a matching number of zero or more `#`
|
||||
|
||||
Reference in New Issue
Block a user