Clarify that strings aren't magical.
This commit is contained in:
parent
b6cf5f5af1
commit
d00a407e00
1 changed files with 2 additions and 1 deletions
|
|
@ -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 `#`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue