Skip to content

to_owned documentation is wrong #39831

Closed
Closed
@sebastianv89

Description

@sebastianv89

The documentation for the to_owned method (https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#examples) claims that &[1,2].to_owned() returns a Vec, while my compiler tells me that it is a [{integer}; 2] see playground.

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