Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing markdown rust annotation #70678

Merged
merged 1 commit into from
Apr 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/doc/unstable-book/src/language-features/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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),
Expand Down