diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-11-26 01:05:20 +0800 |
|---|---|---|
| committer | Ivan Tham <pickfire@riseup.net> | 2020-11-26 01:05:20 +0800 |
| commit | 2d4cfd0779ad8b732dd5fc27fb6a3939f799060f (patch) | |
| tree | b30bd6d3bad9da9678ca669aab09a1ac8b41b4d1 | |
| parent | 6b272e0231f02fcf5e6d9f2f42fcf232b43476ef (diff) | |
| download | rust-2d4cfd0779ad8b732dd5fc27fb6a3939f799060f.tar.gz rust-2d4cfd0779ad8b732dd5fc27fb6a3939f799060f.zip | |
Add while loop keyword to see also
Suggested by withoutboats
| -rw-r--r-- | library/std/src/keyword_docs.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index 5f7f519560a..adebfd33077 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -554,11 +554,12 @@ mod fn_keyword {} /// /// For more information on for-loops, see the [Rust book] or the [Reference]. /// -/// See also, [`loop`]. +/// See also, [`loop`], [`while`]. /// /// [`in`]: keyword.in.html /// [`impl`]: keyword.impl.html /// [`loop`]: keyword.loop.html +/// [`while`]: keyword.while.html /// [higher-ranked trait bounds]: ../reference/trait-bounds.html#higher-ranked-trait-bounds /// [Rust book]: /// ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for @@ -834,6 +835,8 @@ mod let_keyword {} /// /// For more information on `while` and loops in general, see the [reference]. /// +/// See also, [`for`], [`loop`]. +/// /// [`for`]: keyword.for.html /// [`loop`]: keyword.loop.html /// [reference]: ../reference/expressions/loop-expr.html#predicate-loops @@ -882,9 +885,10 @@ mod while_keyword {} /// /// For more information on `loop` and loops in general, see the [Reference]. /// -/// See also, [`for`]. +/// See also, [`for`], [`while`]. /// /// [`for`]: keyword.for.html +/// [`while`]: keyword.while.html /// [Reference]: ../reference/expressions/loop-expr.html mod loop_keyword {} |
