-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Style of for loops enumeration example is unclear Ch. 4.6 of The Book. #34624
Comments
apart from the reported issue; in this example, it would be nice to name in the mentioned book chapter, the example on using |
Fix spacing in for loop enumeration example Add a space between the comma and j in (i, j) to make it look nice. This addresses my recent issue rust-lang#34624. 😀
Fix spacing in for loop enumeration example Add a space between the comma and j in (i, j) to make it look nice. This addresses my recent issue rust-lang#34624. 😀
Fix spacing in for loop enumeration example Add a space between the comma and j in (i, j) to make it look nice. This addresses my recent issue rust-lang#34624. 😀
Fix spacing in for loop enumeration example Add a space between the comma and j in (i, j) to make it look nice. This addresses my recent issue rust-lang#34624. 😀
The original issue appears addressed in #34625, which was merged (though it's not yet reflected in the manual, https://doc.rust-lang.org/book/loops.html). There's still the comment of @xitep to address, and I agree with him. |
Everything lands on nightly, then makes its way through the trains. So you can see it https://doc.rust-lang.org/nightly/book/loops.html , and it'll make it into 1.12's docs. |
Make .enumerate() example self-explanatory Should resolve rust-lang#34624
The example is as follows:
The first tuple does not have a space between the comma and the j ->
(i,j)
Is this correct?
The text was updated successfully, but these errors were encountered: