mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Rollup merge of #31197 - apasel422:issue-31195, r=steveklabnik
Closes #31195 r? @steveklabnik
This commit is contained in:
commit
24931a32e8
@ -195,7 +195,7 @@ for x in 0..10 {
|
||||
You may also encounter situations where you have nested loops and need to
|
||||
specify which one your `break` or `continue` statement is for. Like most
|
||||
other languages, by default a `break` or `continue` will apply to innermost
|
||||
loop. In a situation where you would like to a `break` or `continue` for one
|
||||
loop. In a situation where you would like to `break` or `continue` for one
|
||||
of the outer loops, you can use labels to specify which loop the `break` or
|
||||
`continue` statement applies to. This will only print when both `x` and `y` are
|
||||
odd:
|
||||
|
Loading…
Reference in New Issue
Block a user