about summary refs log tree commit diff
path: root/library/std/src/sync
diff options
context:
space:
mode:
authorRageking8 <tomleetyt@gmail.com>2022-12-05 16:42:36 +0800
committerRageking8 <tomleetyt@gmail.com>2022-12-05 16:42:36 +0800
commit58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2 (patch)
tree0acd9bc67dd30cce5bfded6a32b2663f10f6bad1 /library/std/src/sync
parentb9341bfdb1dec09b49b1e7d01d7c4db0e2436737 (diff)
downloadrust-58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2.tar.gz
rust-58110572fb23e0ad1944bdf3d8cdb3f84cb91aa2.zip
fix dupe word typos
Diffstat (limited to 'library/std/src/sync')
-rw-r--r--library/std/src/sync/mpmc/array.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/mpmc/array.rs b/library/std/src/sync/mpmc/array.rs
index 4db7b4990b9..f71edc6c525 100644
--- a/library/std/src/sync/mpmc/array.rs
+++ b/library/std/src/sync/mpmc/array.rs
@@ -225,7 +225,7 @@ impl<T> Channel<T> {
             let slot = unsafe { self.buffer.get_unchecked(index) };
             let stamp = slot.stamp.load(Ordering::Acquire);
 
-            // If the the stamp is ahead of the head by 1, we may attempt to pop.
+            // If the stamp is ahead of the head by 1, we may attempt to pop.
             if head + 1 == stamp {
                 let new = if index + 1 < self.cap {
                     // Same lap, incremented index.