Skip to content

Docs: Mention vec![x; len] syntax in Vec<T> docs, fix inconsistent use #27375

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

Merged
merged 2 commits into from
Jul 29, 2015
Merged

Docs: Mention vec![x; len] syntax in Vec<T> docs, fix inconsistent use #27375

merged 2 commits into from
Jul 29, 2015

Conversation

niconii
Copy link
Contributor

@niconii niconii commented Jul 29, 2015

Noticed that syntax like vec![0; 5] is never mentioned in Vec<T>'s docs, nor used in any of its methods' docs, so I figured I should add a mention of it. Also noticed vec!(1, 2) being used in one spot while I was at it, so I fixed that as well for consistency's sake.

r? @steveklabnik

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@Gankra
Copy link
Contributor

Gankra commented Jul 29, 2015

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Jul 29, 2015

📌 Commit fe33e58 has been approved by Gankro

@Manishearth
Copy link
Member

@bors rollup

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Jul 29, 2015
Noticed that syntax like `vec![0; 5]` is never mentioned in `Vec<T>`'s docs, nor used in any of its methods' docs, so I figured I should add a mention of it. Also noticed `vec!(1, 2)` being used in one spot while I was at it, so I fixed that as well for consistency's sake.

r? @steveklabnik
bors added a commit that referenced this pull request Jul 29, 2015
@bors bors merged commit fe33e58 into rust-lang:master Jul 29, 2015
@niconii niconii deleted the vec-docs branch September 2, 2015 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants