Skip to content

Commit

Permalink
Auto merge of rust-lang#24803 - SkylerLipthay:patch-2, r=huonw
Browse files Browse the repository at this point in the history
The description of the syntax for single byte literals is missing the preceding `b` distinction.
  • Loading branch information
bors committed Apr 25, 2015
2 parents e3d00a4 + b6dd019 commit 83263b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 83263b4

Please sign in to comment.