Update src/libstd/keyword_docs.rs
Clear up wording regarding the iterator and usage of `break`. Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
parent
f268525d96
commit
09d55292ed
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ mod fn_keyword {}
|
|||
///
|
||||
/// for-in-loops, or to be more precise, iterator loops, are a simple syntactic sugar over a common
|
||||
/// practice within Rust, which is to loop over anything that implements [`IntoIterator`] until the
|
||||
/// temporary iterator returns `None` (or `break` is called).
|
||||
/// iterator returned by `.into_iter()` returns `None` (or the loop body uses `break`).
|
||||
///
|
||||
/// ```rust
|
||||
/// for i in 0..5 {
|
||||
|
|
Loading…
Reference in a new issue