Skip to content

Commit 2f28e83

Browse files
nwinManishearth
authored andcommitted
Byte string literals are now fixed-size arrays
Changed in rust-lang#22838. audited (raw) byte string literals @ rust-lang#16676
1 parent 94676f0 commit 2f28e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ preceded by the characters `U+0062` (`b`) and `U+0022` (double-quote), and
281281
followed by the character `U+0022`. If the character `U+0022` is present within
282282
the literal, it must be _escaped_ by a preceding `U+005C` (`\`) character.
283283
Alternatively, a byte string literal can be a _raw byte string literal_, defined
284-
below. A byte string literal is equivalent to a `&'static [u8]` borrowed array
284+
below. A byte string literal of length `n` is equivalent to a `&'static [u8; n]` borrowed fixed-sized array
285285
of unsigned 8-bit integers.
286286

287287
Some additional _escapes_ are available in either byte or non-raw byte string

0 commit comments

Comments
 (0)