about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstd/keyword_docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs
index 0ab4a45b779..d8d7039777c 100644
--- a/src/libstd/keyword_docs.rs
+++ b/src/libstd/keyword_docs.rs
@@ -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 {