diff options
| author | Nicholas-Baron <nicholas.baron.ten@gmail.com> | 2020-07-19 14:03:52 -0700 |
|---|---|---|
| committer | Nicholas-Baron <nicholas.baron.ten@gmail.com> | 2020-07-19 14:03:52 -0700 |
| commit | 940ceb1a4368110df2d24e58896d3753d5596a33 (patch) | |
| tree | 5ed11ff0315bdaf3143dcbc2124c7b179588d38f /src/libstd | |
| parent | d7f94516345a36ddfcd68cbdf1df835d356795c3 (diff) | |
Mentioned IntoIterator earlier in keyword 'for' docs
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/keyword_docs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs index d985f10ccb4..66236b45761 100644 --- a/src/libstd/keyword_docs.rs +++ b/src/libstd/keyword_docs.rs @@ -473,8 +473,8 @@ mod fn_keyword {} /// * `for` is also used for [higher-ranked trait bounds] as in `for<'a> &'a T: PartialEq<i32>`. /// /// 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 an iterator until that iterator returns `None` (or -/// `break` is called). +/// practice within Rust, which is to loop over anything that implements `IntoIterator` until the +/// temporary iterator returns `None` (or `break` is called). /// /// ```rust /// for i in 0..5 { |
