updating due to changes in latest nightly
This commit is contained in:
@@ -518,11 +518,11 @@ Thanks to [PR#45337][pr45337] you can actually run code like the one in our
|
|||||||
example in Rust today using the `static` keyword on nightly. Try it for
|
example in Rust today using the `static` keyword on nightly. Try it for
|
||||||
yourself:
|
yourself:
|
||||||
|
|
||||||
Beware that the API is changing rapidly. As I was writing this book
|
>Beware that the API is changing rapidly. As I was writing this book, generators
|
||||||
Generators had an API change adding support for a "resume" argument to
|
had an API change adding support for a "resume" argument to get passed into the
|
||||||
be passed into the generator closure.
|
generator closure.
|
||||||
|
>
|
||||||
Follow the progress on the [tracking issue #43122][issue43122] for [RFC#2033][rfc2033].
|
>Follow the progress on the [tracking issue #4312][issue43122] for [RFC#033][rfc2033].
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
#![feature(generators, generator_trait)]
|
#![feature(generators, generator_trait)]
|
||||||
|
|||||||
Reference in New Issue
Block a user