Skip to content

Commit 09d5529

Browse files
Update src/libstd/keyword_docs.rs
Clear up wording regarding the iterator and usage of `break`. Co-authored-by: Josh Triplett <[email protected]>
1 parent f268525 commit 09d5529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/keyword_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ mod fn_keyword {}
474474
///
475475
/// for-in-loops, or to be more precise, iterator loops, are a simple syntactic sugar over a common
476476
/// practice within Rust, which is to loop over anything that implements [`IntoIterator`] until the
477-
/// temporary iterator returns `None` (or `break` is called).
477+
/// iterator returned by `.into_iter()` returns `None` (or the loop body uses `break`).
478478
///
479479
/// ```rust
480480
/// for i in 0..5 {

0 commit comments

Comments
 (0)