changed header

This commit is contained in:
Carl Fredrik Samson
2020-02-05 23:13:35 +01:00
parent 58318daaf0
commit f272d24e0f

View File

@@ -512,11 +512,11 @@ Hopefully, after this you'll have an idea of what happens when you use the
`yield` or `await` keywords inside an async function, and why we need `Pin` if `yield` or `await` keywords inside an async function, and why we need `Pin` if
we want to be able to safely borrow across `yield/await` points. we want to be able to safely borrow across `yield/await` points.
## Bonus section - self referential generators in Rust today
## Bonus 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
Thanks to [PR#45337][pr45337] you can actually run code like the one we display here in Rust yourself:
today using the `static` keyword on nightly. Try it for yourself:
```rust ```rust