From d00a407e00a28a3607ff363cfcc1166eb4559673 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Fri, 6 Dec 2013 12:09:22 -0500 Subject: Clarify that strings aren't magical. --- doc/tutorial.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/tutorial.md') 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 `#` -- cgit 1.4.1-3-g733a5