summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2019-06-19 23:03:33 -0400
committerGitHub <noreply@github.com>2019-06-19 23:03:33 -0400
commitb0dd7fc9f54f85f5844e62a9aeeeb4381f18000e (patch)
tree56f82effe1de3def3ba7a8dd2caa7eba6b9c59ec
parent7d107613498c500699dcf89aab7231c28a8fa3af (diff)
downloadrust-generators-clone-doc.tar.gz
Closures implement Copy and Clone, generators don'tgenerators-clone-doc
-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 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