Skip to content

Commit 471fbe8

Browse files
committed
(Byte literals RFC) Raw string prefix precedent
1 parent 4ea0ec9 commit 471fbe8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

active/0000-ascii-literals.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ byte literals of type `u8` and
4242
byte string literals of type `&'static [u8]` (or `[u8]`, post-DST).
4343
They are identical to the existing character and string literals, except that:
4444

45-
* They are prefixed with a `b` (for "binary"), to distinguish them
45+
* They are prefixed with a `b` (for "binary"), to distinguish them.
46+
This is similar to the `r` prefix for raw strings.
4647
* Unescaped code points in the body must be in the ASCII range: U+0000 to U+007F.
4748
* `'\x5c' 'u' hex_digit 4` and `'\x5c' 'U' hex_digit 8` escapes are not allowed.
4849
* `'\x5c' 'x' hex_digit 2` escapes represent a single byte rather than a code point.

0 commit comments

Comments
 (0)