Skip to content

Improve documentation for std::vec::Vec::with_capacity #49448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
a-coostic opened this issue Mar 28, 2018 · 1 comment · Fixed by #49452
Closed

Improve documentation for std::vec::Vec::with_capacity #49448

a-coostic opened this issue Mar 28, 2018 · 1 comment · Fixed by #49452
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@a-coostic
Copy link

a-coostic commented Mar 28, 2018

Can the note "doesn't specify the length" be understood as "leaves length uninitialized"? As this is not the case, maybe something like "specifies the length 0" would be more informative?

@frewsxcv
Copy link
Member

opened a pull request for this: #49452

@frewsxcv frewsxcv added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Mar 28, 2018
kennytm added a commit to kennytm/rust that referenced this issue Mar 28, 2018
…olnay

Clarify "length" wording in `Vec::with_capacity`.

Fixes rust-lang#49448.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants