Skip to content

Commit dfa933d

Browse files
authored
Rollup merge of rust-lang#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 <[email protected]>
2 parents 5eb7238 + 51cc665 commit dfa933d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/ops/generator.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ pub enum GeneratorState<Y, R> {
6161
/// }
6262
/// ```
6363
///
64-
/// More documentation of generators can be found in the unstable book.
64+
/// More documentation of generators can be found in the [unstable book].
6565
///
6666
/// [RFC 2033]: https://github.com/rust-lang/rfcs/pull/2033
67+
/// [unstable book]: ../../unstable-book/language-features/generators.html
6768
#[lang = "generator"]
6869
#[unstable(feature = "generator_trait", issue = "43122")]
6970
#[fundamental]

0 commit comments

Comments
 (0)