Skip to content

Commit 4b66a28

Browse files
authored
Add missing markdown rust annotation
1 parent 76b1198 commit 4b66a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/unstable-book/src/language-features/generators.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Feedback on the design and usage is always appreciated!
8787

8888
The `Generator` trait in `std::ops` currently looks like:
8989

90-
```
90+
```rust
9191
# #![feature(arbitrary_self_types, generator_trait)]
9292
# use std::ops::GeneratorState;
9393
# use std::pin::Pin;
@@ -107,7 +107,7 @@ point for executing the `Generator` itself.
107107

108108
The return value of `resume`, `GeneratorState`, looks like:
109109

110-
```
110+
```rust
111111
pub enum GeneratorState<Y, R> {
112112
Yielded(Y),
113113
Complete(R),

0 commit comments

Comments
 (0)