From 2fc33f9b9771eb2fd84e3dbae02b772ec01fd57e Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sat, 8 Dec 2018 04:13:18 +0000 Subject: [PATCH] Add missing comma in Generators --- src/doc/unstable-book/src/language-features/generators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/unstable-book/src/language-features/generators.md b/src/doc/unstable-book/src/language-features/generators.md index 8e888de90a951..968534e58bd9e 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!