Skip to content

try_reserve_exact documentation says to "Prefer reserve" #91473

Closed
@8573

Description

@8573

The documentation comments of the three try_reserve_exact methods stabilized today in 1.57.0 (in Vec, String, and VecDeque) all have the same note as the corresponding aborting method reserve_exact:

Prefer reserve if future insertions are expected.

For the fallible try_reserve_exact methods, should that say try_reserve rather than reserve?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.T-libsRelevant to the library 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