Skip to content

Byte string literals are references to arrays #2631

Closed
rust-lang/rust
#97407
@steveklabnik

Description

@steveklabnik

Table B-2 has

Byte string literal; constructs a [u8] instead of a string

But they're &[T; N], not a slice.

(reported on reddit https://www.reddit.com/r/rust/comments/lpgw1n/hey_rustaceans_got_an_easy_question_ask_here_82021/gp7x2el/?utm_source=reddit&utm_medium=web2x&context=3 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions