Skip to content

Commit 6c493df

Browse files
Mentioned IntoIterator in keyword 'in' docs
1 parent 940ceb1 commit 6c493df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/keyword_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ mod impl_keyword {}
680680
//
681681
/// Iterate over a series of values with [`for`].
682682
///
683-
/// The expression immediately following `in` must implement the [`Iterator`] trait.
683+
/// The expression immediately following `in` must implement the [`IntoIterator`] trait.
684684
///
685685
/// ## Literal Examples:
686686
///
@@ -689,7 +689,7 @@ mod impl_keyword {}
689689
///
690690
/// (Read more about [range patterns])
691691
///
692-
/// [`Iterator`]: ../book/ch13-04-performance.html
692+
/// [`IntoIterator`]: ../book/ch13-04-performance.html
693693
/// [range patterns]: ../reference/patterns.html?highlight=range#range-patterns
694694
/// [`for`]: keyword.for.html
695695
mod in_keyword {}

0 commit comments

Comments
 (0)