Skip to content

Commit 0041343

Browse files
authored
Merge pull request #325 from alercah/sync-refs
Correct when closures are Sync.
2 parents 4b4a2af + e340392 commit 0041343

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/types.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,7 @@ of cloning of the captured variables is left unspecified.
495495

496496
Because captures are often by reference, the following general rules arise:
497497

498-
* A closure is [`Sync`] if all variables captured by mutable reference, copy,
499-
or move are [`Sync`].
498+
* A closure is [`Sync`] if all captured variables are [`Sync`].
500499
* A closure is [`Send`] if all variables captured by shared reference are
501500
[`Sync`], and all values captured by mutable reference, copy, or move are
502501
[`Send`].

0 commit comments

Comments
 (0)