Skip to content

vec![elem; size] with run-time size should be highly visible in docs for std::vec, std::vec::Vec and std::vec! #26723

Closed
@petrochenkov

Description

@petrochenkov

It's a common beginner's problem to create a vector with run-time size filled with identical values, but the idiomatic solution is pretty much undiscoverable without asking people on IRC/StackOverflow/Reddit.

cc @steveklabnik

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