File tree 1 file changed +3
-3
lines changed
library/std/src/sync/mpmc
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -547,9 +547,9 @@ impl<T> Channel<T> {
547
547
}
548
548
549
549
let mut head = self . head . index . load ( Ordering :: Acquire ) ;
550
- // the channel may be uninitialized, so we have to swap to avoid overwriting any sender's attempts
551
- // to initalize the first block before noticing that the receivers disconnected. late allocations
552
- // will be deallocated by the sender in Drop
550
+ // The channel may be uninitialized, so we have to swap to avoid overwriting any sender's attempts
551
+ // to initalize the first block before noticing that the receivers disconnected. Late allocations
552
+ // will be deallocated by the sender in Drop.
553
553
let mut block = self . head . block . swap ( ptr:: null_mut ( ) , Ordering :: AcqRel ) ;
554
554
555
555
// If we're going to be dropping messages we need to synchronize with initialization
You can’t perform that action at this time.
0 commit comments