Skip to content

Commit 38c3b62

Browse files
committed
Byte string literals are now fixed-size arrays
Changed in rust-lang#22838. audited (raw) byte string literals @ rust-lang#16676
1 parent 9d439b4 commit 38c3b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/reference.md

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

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

0 commit comments

Comments
 (0)