Skip to content

Doc fixes for 0.6 incoming #5553

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

Conversation

pnkfelix
Copy link
Member

No description provided.

Added notes explaining how [expr, ..expr] form is used, targeted at
individuals like me who thought it was more general and handled
dynamic repeat expressions.  (I left a TODO for this section in a
comment, but perhaps that is bad form for the manual...)

Added example of `do` syntax with a function of arity > 1; yes, one
should be able to derive this from the text above it, but it is still
a useful detail to compare and contrast against the arity == 1 case.

Added example of using for expression over a uint range, since someone
who is most used to write `for(int i; i < lim; i++) { ... }` will
likely want to know how to translate that form (regardless of whether
it happens to be good style or not for their use-case).

Added note about the semi-strange meaning of "fixed size" of vectors
in the vector type section.
@pnkfelix
Copy link
Member Author

r?

@pnkfelix
Copy link
Member Author

r+ (will bors pick it up now?)

bors added a commit that referenced this pull request Mar 26, 2013
@bors bors closed this Mar 26, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 5, 2020
…r=phansch

Move match_on_vec_items to pedantic

Addresses rust-lang/rust-clippy#5551 (comment)

Fixes rust-lang#5553

changelog: Move [`match_on_vec_items`] to pedantic

r? @phansch
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