From 872b5cd80a38eb6c6c5a513c676818abcb0916b9 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 25 Nov 2020 11:00:40 +0800 Subject: [PATCH] Link loop/for keyword --- library/std/src/keyword_docs.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index 80b74a9ba9b..e05e72d9a89 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -554,8 +554,11 @@ mod fn_keyword {} /// /// For more information on for-loops, see the [Rust book] or the [Reference]. /// +/// See also, [`loop`]. +/// /// [`in`]: keyword.in.html /// [`impl`]: keyword.impl.html +/// [`loop`]: keyword.loop.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 @@ -879,6 +882,9 @@ mod while_keyword {} /// /// For more information on `loop` and loops in general, see the [Reference]. /// +/// See also, [`for`]. +/// +/// [`for`]: keyword.loop.html /// [Reference]: ../reference/expressions/loop-expr.html mod loop_keyword {}