Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d7cbb2

Browse files
committedJul 2, 2024
chore: remove duplicate words
1 parent 6c3359c commit 4d7cbb2

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
 

‎core/src/clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ pub struct AssertParamIsCopy<T: Copy + ?Sized> {
230230
pub unsafe trait CloneToUninit {
231231
/// Performs copy-assignment from `self` to `dst`.
232232
///
233-
/// This is analogous to to `std::ptr::write(dst, self.clone())`,
233+
/// This is analogous to `std::ptr::write(dst, self.clone())`,
234234
/// except that `self` may be a dynamically-sized type ([`!Sized`](Sized)).
235235
///
236236
/// Before this function is called, `dst` may point to uninitialized memory.

‎core/src/iter/adapters/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub(crate) struct GenericShunt<'a, I, R> {
159159
residual: &'a mut Option<R>,
160160
}
161161

162-
/// Process the given iterator as if it yielded a the item's `Try::Output`
162+
/// Process the given iterator as if it yielded the item's `Try::Output`
163163
/// type instead. Any `Try::Residual`s encountered will stop the inner iterator
164164
/// and be propagated back to the overall result.
165165
pub(crate) fn try_process<I, T, R, F, U>(iter: I, mut f: F) -> ChangeOutputType<I::Item, U>

‎core/src/num/dec2flt/lemire.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fn compute_product_approx(q: i64, w: u64, precision: usize) -> (u64, u64) {
157157
// Need to do a second multiplication to get better precision
158158
// for the lower product. This will always be exact
159159
// where q is < 55, since 5^55 < 2^128. If this wraps,
160-
// then we need to need to round up the hi product.
160+
// then we need to round up the hi product.
161161
let (_, second_hi) = full_multiplication(w, hi5);
162162
first_lo = first_lo.wrapping_add(second_hi);
163163
if second_hi > first_lo {

‎std/src/io/error/repr_bitpacked.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//!
2929
//! # Layout
3030
//! Tagged values are 64 bits, with the 2 least significant bits used for the
31-
//! tag. This means there are there are 4 "variants":
31+
//! tag. This means there are 4 "variants":
3232
//!
3333
//! - **Tag 0b00**: The first variant is equivalent to
3434
//! `ErrorData::SimpleMessage`, and holds a `&'static SimpleMessage` directly.

‎std/src/sys/pal/unix/args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mod imp {
183183
// Use `_NSGetArgc` and `_NSGetArgv` on Apple platforms.
184184
//
185185
// Even though these have underscores in their names, they've been available
186-
// since since the first versions of both macOS and iOS, and are declared in
186+
// since the first versions of both macOS and iOS, and are declared in
187187
// the header `crt_externs.h`.
188188
//
189189
// NOTE: This header was added to the iOS 13.0 SDK, which has been the source

‎std/src/sys/pal/windows/alloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ unsafe fn allocate(layout: Layout, zeroed: bool) -> *mut u8 {
190190
// it, it is safe to write a header directly before it.
191191
unsafe { ptr::write((aligned as *mut Header).sub(1), Header(ptr)) };
192192

193-
// SAFETY: The returned pointer does not point to the to the start of an allocated block,
193+
// SAFETY: The returned pointer does not point to the start of an allocated block,
194194
// but there is a header readable directly before it containing the location of the start
195195
// of the block.
196196
aligned

0 commit comments

Comments
 (0)
Failed to load comments.