diff options
| author | Corey Richardson <corey@octayn.net> | 2013-12-06 12:09:22 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-12-10 09:43:35 -0500 |
| commit | d00a407e00a28a3607ff363cfcc1166eb4559673 (patch) | |
| tree | 649ff611c5607b7106a3cd9482388122ed892cc7 | |
| parent | b6cf5f5af11b06fa117c4398c7727538ddcf0391 (diff) | |
| download | rust-d00a407e00a28a3607ff363cfcc1166eb4559673.tar.gz rust-d00a407e00a28a3607ff363cfcc1166eb4559673.zip | |
Clarify that strings aren't magical.
| -rw-r--r-- | doc/tutorial.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index ac559ae69b7..1e9b64c9e22 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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 `#` |
