Skip to content

Commit 872b5cd

Browse files
committed
Link loop/for keyword
1 parent 1c389ff commit 872b5cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

library/std/src/keyword_docs.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,11 @@ mod fn_keyword {}
554554
///
555555
/// For more information on for-loops, see the [Rust book] or the [Reference].
556556
///
557+
/// See also, [`loop`].
558+
///
557559
/// [`in`]: keyword.in.html
558560
/// [`impl`]: keyword.impl.html
561+
/// [`loop`]: keyword.loop.html
559562
/// [higher-ranked trait bounds]: ../reference/trait-bounds.html#higher-ranked-trait-bounds
560563
/// [Rust book]:
561564
/// ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
@@ -879,6 +882,9 @@ mod while_keyword {}
879882
///
880883
/// For more information on `loop` and loops in general, see the [Reference].
881884
///
885+
/// See also, [`for`].
886+
///
887+
/// [`for`]: keyword.loop.html
882888
/// [Reference]: ../reference/expressions/loop-expr.html
883889
mod loop_keyword {}
884890

0 commit comments

Comments
 (0)