Skip to content

Commit 2d4cfd0

Browse files
committed
Add while loop keyword to see also
Suggested by withoutboats
1 parent 6b272e0 commit 2d4cfd0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/std/src/keyword_docs.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,12 @@ mod fn_keyword {}
554554
///
555555
/// For more information on for-loops, see the [Rust book] or the [Reference].
556556
///
557-
/// See also, [`loop`].
557+
/// See also, [`loop`], [`while`].
558558
///
559559
/// [`in`]: keyword.in.html
560560
/// [`impl`]: keyword.impl.html
561561
/// [`loop`]: keyword.loop.html
562+
/// [`while`]: keyword.while.html
562563
/// [higher-ranked trait bounds]: ../reference/trait-bounds.html#higher-ranked-trait-bounds
563564
/// [Rust book]:
564565
/// ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
@@ -834,6 +835,8 @@ mod let_keyword {}
834835
///
835836
/// For more information on `while` and loops in general, see the [reference].
836837
///
838+
/// See also, [`for`], [`loop`].
839+
///
837840
/// [`for`]: keyword.for.html
838841
/// [`loop`]: keyword.loop.html
839842
/// [reference]: ../reference/expressions/loop-expr.html#predicate-loops
@@ -882,9 +885,10 @@ mod while_keyword {}
882885
///
883886
/// For more information on `loop` and loops in general, see the [Reference].
884887
///
885-
/// See also, [`for`].
888+
/// See also, [`for`], [`while`].
886889
///
887890
/// [`for`]: keyword.for.html
891+
/// [`while`]: keyword.while.html
888892
/// [Reference]: ../reference/expressions/loop-expr.html
889893
mod loop_keyword {}
890894

0 commit comments

Comments
 (0)