Skip to content

Conversation

pnkfelix
Copy link
Contributor

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
Contributor Author

r?

@pnkfelix
Copy link
Contributor 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