1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-11-24 17:06:37 +02:00

break/continue: don't say "for loop" (#2277)

See #2042.
This commit is contained in:
Frances Wingerter 2024-08-13 14:27:08 +00:00 committed by GitHub
parent 6d743dac5a
commit fa6055c297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ If you want to immediately start the next iteration use
If you want to exit any kind of loop early, use
[`break`](https://doc.rust-lang.org/reference/expressions/loop-expr.html#break-expressions).
For `loop`, this can take an optional expression that becomes the value of the
With `loop`, this can take an optional expression that becomes the value of the
`loop` expression.
```rust,editable