Skip to content

Commit b6dd019

Browse files
committed
Reference manual 3.5.2.3.1
The description of the syntax for single byte literals is missing the preceding `b` distinction.
1 parent a40261a commit b6dd019

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/doc/reference.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,11 @@ r##"foo #"# bar"##; // foo #"# bar
269269
##### Byte literals
270270

271271
A _byte literal_ is a single ASCII character (in the `U+0000` to `U+007F`
272-
range) enclosed within two `U+0027` (single-quote) characters, with the
273-
exception of `U+0027` itself, which must be _escaped_ by a preceding U+005C
274-
character (`\`), or a single _escape_. It is equivalent to a `u8` unsigned
275-
8-bit integer _number literal_.
272+
range) or a single _escape_ preceded by the characters `U+0062` (`b`) and
273+
`U+0027` (single-quote), and followed by the character `U+0027`. If the character
274+
`U+0027` is present within the literal, it must be _escaped_ by a preceding
275+
`U+005C` (`\`) character. It is equivalent to a `u8` unsigned 8-bit integer
276+
_number literal_.
276277

277278
##### Byte string literals
278279

0 commit comments

Comments
 (0)