mirror of https://github.com/rust-lang/rust.git
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>
This commit is contained in:
commit
dfa933d420
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue