Skip to content

Commit

Permalink
Rollup merge of rust-lang#98296 - JohnTitor:generator-unstable-book-l…
Browse files Browse the repository at this point in the history
…ink, 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]>
  • Loading branch information
matthiaskrgr authored Jun 20, 2022
2 parents 5eb7238 + 51cc665 commit dfa933d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/src/ops/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit dfa933d

Please sign in to comment.