diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-12-08 08:43:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-08 08:43:50 +0100 |
| commit | a8cc9166d47afebea15e6079d033fa37ecda3f7d (patch) | |
| tree | db5baaa7567846220e421d8883b62c2885cc75eb /src | |
| parent | 9f7f9496000eb2e1e49eaab075233f0f44e7bdac (diff) | |
| parent | 2fc33f9b9771eb2fd84e3dbae02b772ec01fd57e (diff) | |
| download | rust-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.md | 2 |
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! |
