Skip to content

Commit

Permalink
Add a link to the unstable book page on Generator doc comment
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor committed Jun 20, 2022
1 parent 1d60108 commit 51cc665
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 51cc665

Please sign in to comment.