Mentioned IntoIterator in keyword 'in' docs

This commit is contained in:
Nicholas-Baron 2020-07-19 14:05:45 -07:00
parent 940ceb1a43
commit 6c493df0f8

View File

@ -680,7 +680,7 @@ mod impl_keyword {}
// //
/// Iterate over a series of values with [`for`]. /// Iterate over a series of values with [`for`].
/// ///
/// The expression immediately following `in` must implement the [`Iterator`] trait. /// The expression immediately following `in` must implement the [`IntoIterator`] trait.
/// ///
/// ## Literal Examples: /// ## Literal Examples:
/// ///
@ -689,7 +689,7 @@ mod impl_keyword {}
/// ///
/// (Read more about [range patterns]) /// (Read more about [range patterns])
/// ///
/// [`Iterator`]: ../book/ch13-04-performance.html /// [`IntoIterator`]: ../book/ch13-04-performance.html
/// [range patterns]: ../reference/patterns.html?highlight=range#range-patterns /// [range patterns]: ../reference/patterns.html?highlight=range#range-patterns
/// [`for`]: keyword.for.html /// [`for`]: keyword.for.html
mod in_keyword {} mod in_keyword {}