diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-20 20:13:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-20 20:13:12 +0200 |
| commit | dfa933d420ac6ba5af66b0be60455c9bd1882bf2 (patch) | |
| tree | 12bbac6ae7dea936d1ebd7ebf1b331f057ba508f | |
| parent | 5eb7238928a720958987bcd897592cadebf2597e (diff) | |
| parent | 51cc665b3392aa980c39eb07338af1c25fa0697c (diff) | |
| download | rust-dfa933d420ac6ba5af66b0be60455c9bd1882bf2.tar.gz rust-dfa933d420ac6ba5af66b0be60455c9bd1882bf2.zip | |
Rollup merge of #98296 - JohnTitor:generator-unstable-book-link, r=Dylan-DPC
Add a link to the unstable book page on Generator doc comment This makes it easier to jump into the Generator section on the unstable book. Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| -rw-r--r-- | library/core/src/ops/generator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<Y, R> { /// } /// ``` /// -/// 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] |
