]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/unstable-book/src/language-features/generators.md
Closures implement Copy and Clone, generators don't
[rust.git] / src / doc / unstable-book / src / language-features / generators.md
index 426fc01a6b051173f3a08a2d2469c09915ff85f9..97cf58e57e6056e7e9399056806f0cd03762e8eb 100644 (file)
@@ -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