From: morganamilo Date: Sat, 8 Dec 2018 04:13:18 +0000 (+0000) Subject: Add missing comma in Generators X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=2fc33f9b9771eb2fd84e3dbae02b772ec01fd57e;p=rust.git Add missing comma in Generators --- diff --git a/src/doc/unstable-book/src/language-features/generators.md b/src/doc/unstable-book/src/language-features/generators.md index 8e888de90a9..968534e58bd 100644 --- a/src/doc/unstable-book/src/language-features/generators.md +++ b/src/doc/unstable-book/src/language-features/generators.md @@ -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!