1
Fork 0

Add a link to the unstable book page on Generator doc comment

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2022-06-20 23:19:10 +09:00
parent 1d6010816c
commit 51cc665b33
No known key found for this signature in database
GPG key ID: 379CEEFDD63E5DD7

View file

@ -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]