Skip to content

Improve documentation for Vec::as_slice #25622

Closed
@mbrubeck

Description

@mbrubeck

Vec::as_slice and Vec::as_mut_slice are both marked unstable with reason "waiting on RFC revision." But the docs for as_mut_slice say that it is deprecated.

If these methods are deprecated, they should be marked deprecated instead of unstable. And either way, a hint should be added regarding how to replace Vec::as_slice in old code.

[moved from rust-lang/rfcs#1128]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions