We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 857942e + 4b66a28 commit c10f214Copy full SHA for c10f214
src/doc/unstable-book/src/language-features/generators.md
@@ -87,7 +87,7 @@ Feedback on the design and usage is always appreciated!
87
88
The `Generator` trait in `std::ops` currently looks like:
89
90
-```
+```rust
91
# #![feature(arbitrary_self_types, generator_trait)]
92
# use std::ops::GeneratorState;
93
# use std::pin::Pin;
@@ -107,7 +107,7 @@ point for executing the `Generator` itself.
107
108
The return value of `resume`, `GeneratorState`, looks like:
109
110
111
pub enum GeneratorState<Y, R> {
112
Yielded(Y),
113
Complete(R),
0 commit comments