about summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-25 13:10:33 +0000
committerbors <bors@rust-lang.org>2015-04-25 13:10:33 +0000
commit83263b48c39ef0e21cc9872191f4ce4877f4e05f (patch)
tree696894e3b8495cf436d9fd678be0da412a087d00 /src/doc/reference.md
parente3d00a49803fa75580b912463666d86ce2ee3bb8 (diff)
parentb6dd0197f3f20c7fbd0301f2aba5a70d0fc9a68d (diff)
downloadrust-83263b48c39ef0e21cc9872191f4ce4877f4e05f.tar.gz
rust-83263b48c39ef0e21cc9872191f4ce4877f4e05f.zip
Auto merge of #24803 - SkylerLipthay:patch-2, r=huonw
The description of the syntax for single byte literals is missing the preceding `b` distinction.
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 059da891925..13f5e391e42 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -269,10 +269,11 @@ r##"foo #"# bar"##;                // foo #"# bar
 ##### Byte literals
 
 A _byte literal_ is a single ASCII character (in the `U+0000` to `U+007F`
-range) enclosed within two `U+0027` (single-quote) characters, with the
-exception of `U+0027` itself, which must be _escaped_ by a preceding U+005C
-character (`\`), or a single _escape_. It is equivalent to a `u8` unsigned
-8-bit integer _number literal_.
+range) or a single _escape_ preceded by the characters `U+0062` (`b`) and
+`U+0027` (single-quote), and followed by the character `U+0027`. If the character
+`U+0027` is present within the literal, it must be _escaped_ by a preceding
+`U+005C` (`\`) character. It is equivalent to a `u8` unsigned 8-bit integer
+_number literal_.
 
 ##### Byte string literals