]> git.lizzy.rs Git - rust.git/commitdiff
Add missing comma in Generators
authormorganamilo <morganamilo@gmail.com>
Sat, 8 Dec 2018 04:13:18 +0000 (04:13 +0000)
committermorganamilo <morganamilo@gmail.com>
Sat, 8 Dec 2018 04:13:18 +0000 (04:13 +0000)
src/doc/unstable-book/src/language-features/generators.md

index 8e888de90a95149ecf786f9b62e8588114623547..968534e58bd9ebe943565a7452ab29a9ace3fa68 100644 (file)
@@ -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!