Rollup merge of #70678 - lzutao:patch-1, r=Dylan-DPC

Add missing markdown rust annotation
This commit is contained in:
Mazdak Farrokhzad 2020-04-02 14:28:01 +02:00 committed by GitHub
commit c10f214ddc
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),