Skip to content

Commit b0dd7fc

Browse files
authored
Closures implement Copy and Clone, generators don't
1 parent 7d10761 commit b0dd7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/unstable-book/src/language-features/generators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ closure-like semantics. Namely:
146146
generators also depend on variables live across suspension points. This means
147147
that although the ambient environment may be `Send` or `Sync`, the generator
148148
itself may not be due to internal variables live across `yield` points being
149-
not-`Send` or not-`Sync`. Note that generators, like closures, do
149+
not-`Send` or not-`Sync`. Note that generators do
150150
not implement traits like `Copy` or `Clone` automatically.
151151

152152
* Whenever a generator is dropped it will drop all captured environment

0 commit comments

Comments
 (0)