Skip to content

vec::capacity is really vec::len? #2650

Closed

Description

@joseph-montanez

http://doc.rust-lang.org/doc/core/vec.html#function-capacity

As of rust 0.2 I've tried calling vec::capacity and it produces an unresolved error. Is this for rust 0.1, or the master?

Activity

  1. brson commented on Jun 20, 2012

    @brson
    Contributor

    the docs on rust-lang.org tend to represent what's on trunk and capacity was added after 0.2. The docs should really reflect what version they were generated from. I think there's an issue open for that.

  2. added a commit that references this issue on Nov 6, 2022
  3. added a commit that references this issue on Jan 6, 2023
  4. added a commit that references this issue on Jun 4, 2024
    964f986
  5. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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