-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
for
section of the manual hasn't been updated for iterators
#8876
Comments
Also "in" is missing on keywords list, sending PR for that in a moment. |
It looks like the whole
In any case, the grammar is now (I'm changing this issue to be more general, and just cover the whole section, which needs a rewrite to reflect reality.) |
@toqueteos Are you still looking at rewriting the docs? If not, I may take a poke at it sometime in the semi-near future. |
@singingboyo Feel free to contribute, I didn't make a PR for the "for" section because I'm not that experienced on Rust. |
This could be better documented, but is no longer out-of-date. The iterator tutorial does cover this stuff fairly well too. |
…r=dswij,xFrednet `cast_abs_to_unsigned`: do not remove cast if it's required Fixes rust-lang#8873 If `iX` is not cast to `uX` then keep the cast rather than removing it changelog: [`cast_abs_to_unsigned`]: do not remove cast if it's required
(... other than the code examples.)
New docs have updated examples to include the new in syntax but no other mention to in is made on http://static.rust-lang.org/doc/rust.html#for-expressions.
Also grammar production is wrong (doesn't include new "in" syntax).
The text was updated successfully, but these errors were encountered: