Skip to content

Commit

Permalink
Byte string literals are now fixed-size arrays
Browse files Browse the repository at this point in the history
Changed in rust-lang#22838.

audited (raw) byte string literals @ rust-lang#16676
  • Loading branch information
nwin committed Apr 24, 2015
1 parent 9d439b4 commit 38c3b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ preceded by the characters `U+0062` (`b`) and `U+0022` (double-quote), and
followed by the character `U+0022`. If the character `U+0022` is present within
the literal, it must be _escaped_ by a preceding `U+005C` (`\`) character.
Alternatively, a byte string literal can be a _raw byte string literal_, defined
below. A byte string literal is equivalent to a `&'static [u8]` borrowed array
below. A byte string literal of length `n` is equivalent to a `&'static [u8; n]` borrowed fixed-sized array
of unsigned 8-bit integers.

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

0 comments on commit 38c3b62

Please sign in to comment.