Skip to content

Vec::capacity documentation is ambiguous #103326

Closed
@akonradi

Description

@akonradi

Location

Standard library documentation for Vec::capacity (https://doc.rust-lang.org/std/vec/struct.Vec.html#method.capacity)

Summary

It's not clear whether the returned capacity is the total capacity or remaining capacity of the vector. The text and example don't seem to signal either way.

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