Skip to content

Commit f268525

Browse files
Linked the earlier mention of IntoIterator in the keyword 'for' docs
1 parent 6c493df commit f268525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/keyword_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ mod fn_keyword {}
473473
/// * `for` is also used for [higher-ranked trait bounds] as in `for<'a> &'a T: PartialEq<i32>`.
474474
///
475475
/// for-in-loops, or to be more precise, iterator loops, are a simple syntactic sugar over a common
476-
/// practice within Rust, which is to loop over anything that implements `IntoIterator` until the
476+
/// practice within Rust, which is to loop over anything that implements [`IntoIterator`] until the
477477
/// temporary iterator returns `None` (or `break` is called).
478478
///
479479
/// ```rust

0 commit comments

Comments
 (0)