about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2018-12-08 08:43:50 +0100
committerGitHub <noreply@github.com>2018-12-08 08:43:50 +0100
commita8cc9166d47afebea15e6079d033fa37ecda3f7d (patch)
treedb5baaa7567846220e421d8883b62c2885cc75eb /src
parent9f7f9496000eb2e1e49eaab075233f0f44e7bdac (diff)
parent2fc33f9b9771eb2fd84e3dbae02b772ec01fd57e (diff)
downloadrust-a8cc9166d47afebea15e6079d033fa37ecda3f7d.tar.gz
rust-a8cc9166d47afebea15e6079d033fa37ecda3f7d.zip
Rollup merge of #56621 - Morganamilo:fix-generators-comma, r=Centril
Add missing comma in Generators
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/language-features/generators.md2
1 files changed, 1 insertions, 1 deletions
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!