You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this and #3820. I think we probably don’t want to add more example code here, but maybe we can sneak in a sentence which says that continue and break work the same way with loop labels as they do without them (worded better than this, of course!). That would minimize the change to the text while still conveying the info.
main
branch to see if this has already been fixed, in this file:src/ch03-05-control-flow.md
URL to the section(s) of the book with this problem:
https://github.com/rust-lang/book/blob/main/src/ch03-05-control-flow.md
https://doc.rust-lang.org/book/ch03-05-control-flow.html
Description of the problem:
There are no examples on continuing a higher up labeled loop when there are nested
loop
s.Ex
Suggested fix:
Adding section on how
continue
can take an optional label and continue theloop
with that label instead of just the currentloop
scope.The text was updated successfully, but these errors were encountered: