Skip to content

Commit 7c9fa95

Browse files
fix typos
Co-authored-by: Ralf Jung <[email protected]>
1 parent 9c6a076 commit 7c9fa95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/sync/mpmc/list.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ impl<T> Channel<T> {
547547
}
548548

549549
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.
553553
let mut block = self.head.block.swap(ptr::null_mut(), Ordering::AcqRel);
554554

555555
// If we're going to be dropping messages we need to synchronize with initialization

0 commit comments

Comments
 (0)