Skip to content

Mention for in the section on loops - #7001

Merged
bors merged 1 commit into
rust-lang:incomingfrom
alco:tutorial-for-loop
Jun 8, 2013
Merged

bors merged 1 commit into
rust-lang:incomingfrom
alco:tutorial-for-loop

Conversation

@alco

@alco alco commented Jun 7, 2013

Copy link
Copy Markdown
Contributor

The "4.3 Loops" section only describes while and loop. We then see for
used in a code sample at the end of the "13. Vectors and strings" section,
but it's explained for the first time only in the next section --
"14. Closures".

It is worth mentioning it in "4.3 Loops".


Feel free to reword it and commit yourself if you don't like my wording.

@bstrie

bstrie commented Jun 7, 2013

Copy link
Copy Markdown
Contributor

This could actually be an important change in the face of #6997 , which would make for no longer simply sugar for higher-order functions.

Please change it to refer to for as a "construct" rather than a "loop", since it's so different from C's for and it's not necessarily a loop at all.

Also, "the C's" should become "C's".

The "4.3 Loops" section only describes `while` and `loop`. We then see `for`
used in a code sample at the end of the "13. Vectors and strings" section,
but it's explained for the first time only in the next section --
"14. Closures".

It is worth mentioning it in "4.3 Loops".
@alco

alco commented Jun 8, 2013

Copy link
Copy Markdown
Contributor Author

@bstrie I've applied your suggestions and amended the commit.

@bstrie

bstrie commented Jun 8, 2013

Copy link
Copy Markdown
Contributor

Thanks!

bors added a commit that referenced this pull request Jun 8, 2013
The "4.3 Loops" section only describes `while` and `loop`. We then see `for`
used in a code sample at the end of the "13. Vectors and strings" section,
but it's explained for the first time only in the next section --
"14. Closures".

It is worth mentioning it in "4.3 Loops".

---

Feel free to reword it and commit yourself if you don't like my wording.
@bors bors closed this Jun 8, 2013
@bors
bors merged commit 83b68a2 into rust-lang:incoming Jun 8, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 8, 2021
…Manishearth

Add non_octal_unix_permissions lint

fixes rust-lang#6934

changelog: add new lint that checks for non-octal values used to set unix file permissions
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
7001: Add support for downloading aarch64-apple-darwin binaries r=matklad a=lnicola

There's also a slight behavior change here: we no longer download our 64-binaries on 32-bit Darwin and Linux. We still do that on Windows, as I don't know how to detect 32-bit Node on 64 Windows.

But some people install the 32-bit Code by mistake, I doubt 32-bit Windows is that popular in the Rust crowd.

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
rust-bors Bot pushed a commit that referenced this pull request Aug 29, 2026
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