Skip to content

Commit 66fe49b

Browse files
authored
Rollup merge of rust-lang#79398 - pickfire:keyword, r=Dylan-DPC
Link loop/for keyword Even though the reference already have all of these, I am just adding related keywords in the see also to let others easily click on the related keyword.
2 parents 00d215b + 2d4cfd0 commit 66fe49b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

library/std/src/keyword_docs.rs

+10
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,12 @@ mod fn_keyword {}
565565
///
566566
/// For more information on for-loops, see the [Rust book] or the [Reference].
567567
///
568+
/// See also, [`loop`], [`while`].
569+
///
568570
/// [`in`]: keyword.in.html
569571
/// [`impl`]: keyword.impl.html
572+
/// [`loop`]: keyword.loop.html
573+
/// [`while`]: keyword.while.html
570574
/// [higher-ranked trait bounds]: ../reference/trait-bounds.html#higher-ranked-trait-bounds
571575
/// [Rust book]:
572576
/// ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
@@ -842,6 +846,8 @@ mod let_keyword {}
842846
///
843847
/// For more information on `while` and loops in general, see the [reference].
844848
///
849+
/// See also, [`for`], [`loop`].
850+
///
845851
/// [`for`]: keyword.for.html
846852
/// [`loop`]: keyword.loop.html
847853
/// [reference]: ../reference/expressions/loop-expr.html#predicate-loops
@@ -890,6 +896,10 @@ mod while_keyword {}
890896
///
891897
/// For more information on `loop` and loops in general, see the [Reference].
892898
///
899+
/// See also, [`for`], [`while`].
900+
///
901+
/// [`for`]: keyword.for.html
902+
/// [`while`]: keyword.while.html
893903
/// [Reference]: ../reference/expressions/loop-expr.html
894904
mod loop_keyword {}
895905

0 commit comments

Comments
 (0)