mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-07 23:47:39 +00:00
Linked the earlier mention of IntoIterator in the keyword 'for' docs
This commit is contained in:
parent
6c493df0f8
commit
f268525d96
@ -473,7 +473,7 @@ mod fn_keyword {}
|
|||||||
/// * `for` is also used for [higher-ranked trait bounds] as in `for<'a> &'a T: PartialEq<i32>`.
|
/// * `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
|
/// 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
|
/// practice within Rust, which is to loop over anything that implements [`IntoIterator`] until the
|
||||||
/// temporary iterator returns `None` (or `break` is called).
|
/// temporary iterator returns `None` (or `break` is called).
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
Loading…
Reference in New Issue
Block a user