Add missing markdown rust annotation

This commit is contained in:
lzutao 2020-04-02 08:34:57 +07:00 committed by GitHub
parent 76b11980ad
commit 4b66a28bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ Feedback on the design and usage is always appreciated!
The `Generator` trait in `std::ops` currently looks like:
```
```rust
# #![feature(arbitrary_self_types, generator_trait)]
# use std::ops::GeneratorState;
# use std::pin::Pin;
@ -107,7 +107,7 @@ point for executing the `Generator` itself.
The return value of `resume`, `GeneratorState`, looks like:
```
```rust
pub enum GeneratorState<Y, R> {
Yielded(Y),
Complete(R),