Clarify that strings aren't magical.

This commit is contained in:
Corey Richardson 2013-12-06 12:09:22 -05:00
parent b6cf5f5af1
commit d00a407e00

View file

@ -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 `#`