Skip to content

"Notable Traits" for &[u8] includes Write, which is only on &mut [u8] #55082

Closed
@scottmcm

Description

@scottmcm

https://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_bytes

The popup has

Important traits for &'a [u8]

impl<'a> Read for &'a [u8]
impl<'a> Write for &'a mut [u8]

Write seems like it shouldn't be in that list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions