Skip to content

Commit

Permalink
Rollup merge of #56621 - Morganamilo:fix-generators-comma, r=Centril
Browse files Browse the repository at this point in the history
Add missing comma in Generators
  • Loading branch information
Centril authored Dec 8, 2018
2 parents 9f7f949 + 2fc33f9 commit a8cc916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/unstable-book/src/language-features/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ closure-like semantics. Namely:
* Whenever a generator is dropped it will drop all captured environment
variables.

Note that unlike closures generators at this time cannot take any arguments.
Note that unlike closures, generators at this time cannot take any arguments.
That is, generators must always look like `|| { ... }`. This restriction may be
lifted at a future date, the design is ongoing!

Expand Down

0 comments on commit a8cc916

Please sign in to comment.