diff options
| author | Ibraheem Ahmed <ibraheem@ibraheem.ca> | 2024-02-29 01:33:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-29 01:33:02 -0500 |
| commit | 7c9fa952c3be1f7d0872fe9cd5f1f4a0327771b9 (patch) | |
| tree | b5b9383e8bafcbecbcce6a16fbc2a4fff28d2b41 /library/std/src | |
| parent | 9c6a0766be95fc197f4f30764a794eb4d50b649a (diff) | |
| download | rust-7c9fa952c3be1f7d0872fe9cd5f1f4a0327771b9.tar.gz rust-7c9fa952c3be1f7d0872fe9cd5f1f4a0327771b9.zip | |
fix typos
Co-authored-by: Ralf Jung <post@ralfj.de>
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sync/mpmc/list.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sync/mpmc/list.rs b/library/std/src/sync/mpmc/list.rs index b6bae7dc50c..9e7148c716c 100644 --- a/library/std/src/sync/mpmc/list.rs +++ b/library/std/src/sync/mpmc/list.rs @@ -547,9 +547,9 @@ impl<T> Channel<T> { } let mut head = self.head.index.load(Ordering::Acquire); - // the channel may be uninitialized, so we have to swap to avoid overwriting any sender's attempts - // to initalize the first block before noticing that the receivers disconnected. late allocations - // will be deallocated by the sender in Drop + // The channel may be uninitialized, so we have to swap to avoid overwriting any sender's attempts + // to initalize the first block before noticing that the receivers disconnected. Late allocations + // will be deallocated by the sender in Drop. let mut block = self.head.block.swap(ptr::null_mut(), Ordering::AcqRel); // If we're going to be dropping messages we need to synchronize with initialization |
