Skip to content

small error in macro.bytes!.html #14697

@electricface

Description

@electricface

in file file:///usr/share/doc/rust-nightly/doc/std/macros/builtin/macro.bytes!.html

example

let rust = bytes!("r", 'u', "st", 255);
assert_eq!(rust[1], 'u' as u8);
assert_eq!(rust[5], 255);

task '

' failed at 'index out of bounds: the len is 5 but the index is 5', macros-builtin-test.rs:49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions