Skip to content
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

fix grammar in Vec.retain's doc comment #16325

Merged
merged 1 commit into from
Aug 8, 2014

Conversation

froydnj
Copy link
Contributor

@froydnj froydnj commented Aug 7, 2014

Just a small typo noticed while reading through documentation.

bors added a commit that referenced this pull request Aug 8, 2014
Just a small typo noticed while reading through documentation.
@bors bors closed this Aug 8, 2014
@bors bors merged commit 0d974ee into rust-lang:master Aug 8, 2014
@froydnj froydnj deleted the vec-grammar-fix branch October 24, 2015 12:33
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Feb 11, 2024
Swap Subtree::token_trees from Vec to boxed slice

Performs one of the optimizations suggested in rust-lang#16325, but a little bit more. Boxed slices guarantee `shrink_to_fit` aswell as saving a pointer width as no capacity has to be stored.

Most of the diff is:
- Changing `vec![]` to `Box::new([])`
- Changing initialize -> fill into fill -> into_boxed_slice
- Working around the lack of an owned iterator or automatic iteration over a `Box<[T]>`

I would like to use my own crate, [small-fixed-array](https://lib.rs/small-fixed-array), although I understand if it isn't mature enough for this. If I'm given the go ahead, I can rework this PR to use it instead.
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.

3 participants