From 51cc665b3392aa980c39eb07338af1c25fa0697c Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 20 Jun 2022 23:19:10 +0900 Subject: [PATCH] Add a link to the unstable book page on Generator doc comment Signed-off-by: Yuki Okushi --- library/core/src/ops/generator.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/ops/generator.rs b/library/core/src/ops/generator.rs index 7c3b2a644e8..b651b7b233e 100644 --- a/library/core/src/ops/generator.rs +++ b/library/core/src/ops/generator.rs @@ -61,9 +61,10 @@ pub enum GeneratorState { /// } /// ``` /// -/// More documentation of generators can be found in the unstable book. +/// More documentation of generators can be found in the [unstable book]. /// /// [RFC 2033]: https://github.com/rust-lang/rfcs/pull/2033 +/// [unstable book]: ../../unstable-book/language-features/generators.html #[lang = "generator"] #[unstable(feature = "generator_trait", issue = "43122")] #[fundamental]