Skip to content

Commit fdbc4ce

Browse files
authored
Rollup merge of rust-lang#61981 - rust-lang:generators-clone-doc, r=cramertj
Closures implement Copy and Clone, generators don't
2 parents 4129463 + b0dd7fc commit fdbc4ce

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)