Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explain container iteration in the loop tutorial
As suggested by @pnkfelix in #12161, this extends the examples by a for-loop that iterates over a string as an example for container iteration.
- Loading branch information
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68c960a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at milibopp@68c960a
68c960a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging aepsil0n/rust/docs/for-loop = 68c960a into auto
68c960a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aepsil0n/rust/docs/for-loop = 68c960a merged ok, testing candidate = 6532d2f
68c960a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/4360
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/2202
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/2203
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4358
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3458
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3464
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4373
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3461
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3467
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4375
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3461
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3466
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3535
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1314
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4367
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3468
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3474
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/4135
68c960a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 6532d2f