Skip to content

Commit

Permalink
Update src/libstd/keyword_docs.rs
Browse files Browse the repository at this point in the history
Clear up wording regarding the iterator and usage of `break`.

Co-authored-by: Josh Triplett <[email protected]>
  • Loading branch information
Nicholas-Baron and joshtriplett authored Jul 20, 2020
1 parent f268525 commit 09d5529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 09d5529

Please sign in to comment.