Skip to content

Commit cf57758

Browse files
author
Yuki Okushi
authored
Rollup merge of #105289 - Rageking8:fix-dupe-word-typos, r=cjgillot
Fix dupe word typos
2 parents ee04594 + 5955c4d commit cf57758

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

core/src/iter/sources/repeat_n.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::mem::ManuallyDrop;
2020
/// #![feature(iter_repeat_n)]
2121
/// use std::iter;
2222
///
23-
/// // four of the the number four:
23+
/// // four of the number four:
2424
/// let mut four_fours = iter::repeat_n(4, 4);
2525
///
2626
/// assert_eq!(Some(4), four_fours.next());

core/src/str/pattern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,7 @@ unsafe fn small_slice_eq(x: &[u8], y: &[u8]) -> bool {
18941894
// Thus, derefencing both `px` and `py` in the loop below is safe.
18951895
//
18961896
// Moreover, we set `pxend` and `pyend` to be 4 bytes before the actual
1897-
// end of of `px` and `py`. Thus, the final dereference outside of the
1897+
// end of `px` and `py`. Thus, the final dereference outside of the
18981898
// loop is guaranteed to be valid. (The final comparison will overlap with
18991899
// the last comparison done in the loop for lengths that aren't multiples
19001900
// of four.)

std/src/sync/mpmc/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl<T> Channel<T> {
225225
let slot = unsafe { self.buffer.get_unchecked(index) };
226226
let stamp = slot.stamp.load(Ordering::Acquire);
227227

228-
// If the the stamp is ahead of the head by 1, we may attempt to pop.
228+
// If the stamp is ahead of the head by 1, we may attempt to pop.
229229
if head + 1 == stamp {
230230
let new = if index + 1 < self.cap {
231231
// Same lap, incremented index.

std/src/thread/scoped.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl ScopeData {
4646
// We check for 'overflow' with usize::MAX / 2, to make sure there's no
4747
// chance it overflows to 0, which would result in unsoundness.
4848
if self.num_running_threads.fetch_add(1, Ordering::Relaxed) > usize::MAX / 2 {
49-
// This can only reasonably happen by mem::forget()'ing many many ScopedJoinHandles.
49+
// This can only reasonably happen by mem::forget()'ing a lot of ScopedJoinHandles.
5050
self.decrement_num_running_threads(false);
5151
panic!("too many running threads in thread scope");
5252
}

0 commit comments

Comments
 (0)