diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-20 22:14:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-20 22:14:26 +0200 |
| commit | fdbc4ce686f814c5149b6a35ac442b7fb36255cf (patch) | |
| tree | 1f2dfc8aaf5a58eb9dfa0dd3d6b2c5f700127ece | |
| parent | 412946368359a6149da69aebbe2f14ecb957082f (diff) | |
| parent | b0dd7fc9f54f85f5844e62a9aeeeb4381f18000e (diff) | |
| download | rust-fdbc4ce686f814c5149b6a35ac442b7fb36255cf.tar.gz rust-fdbc4ce686f814c5149b6a35ac442b7fb36255cf.zip | |
Rollup merge of #61981 - rust-lang:generators-clone-doc, r=cramertj
Closures implement Copy and Clone, generators don't
| -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 426fc01a6b0..97cf58e57e6 100644 --- a/src/doc/unstable-book/src/language-features/generators.md +++ b/src/doc/unstable-book/src/language-features/generators.md @@ -146,7 +146,7 @@ closure-like semantics. Namely: generators also depend on variables live across suspension points. This means that although the ambient environment may be `Send` or `Sync`, the generator itself may not be due to internal variables live across `yield` points being - not-`Send` or not-`Sync`. Note that generators, like closures, do + not-`Send` or not-`Sync`. Note that generators do not implement traits like `Copy` or `Clone` automatically. * Whenever a generator is dropped it will drop all captured environment |
