Skip to content

std::array's documentation mistakenly says it derefs to [T] #29993

@niconii

Description

@niconii

The doc page for std::array says this:

Arrays dereference to slices ([T]), so their methods can be called on arrays.

However, though this is true of Vec<T>, arrays in fact coerce via CoerceUnsized, not via deref coercion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions