Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita8b6d0a

Browse files
authored
Rollup merge ofrust-lang#127230 - hattizai:patch01, r=saethlin
chore: remove duplicate wordsremove duplicate words in comments to improve readability.
2 parentsc5ab1f0 +4d7cbb2 commita8b6d0a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

‎core/src/clone.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ pub struct AssertParamIsCopy<T: Copy + ?Sized> {
230230
pubunsafetraitCloneToUninit{
231231
/// Performs copy-assignment from `self` to `dst`.
232232
///
233-
/// This is analogous toto`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‎

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

162-
/// Process the given iterator as if it yieldedathe 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)fntry_process<I,T,R,F,U>(iter:I,mutf:F) ->ChangeOutputType<I::Item,U>

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

Lines changed: 1 addition & 1 deletion
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 toneed toround 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‎

Lines changed: 1 addition & 1 deletion
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 arethere are4 "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‎

Lines changed: 1 addition & 1 deletion
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-
// sincesincethe 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‎

Lines changed: 1 addition & 1 deletion
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((alignedas*mutHeader).sub(1),Header(ptr))};
192192

193-
// SAFETY: The returned pointer does not point to theto thestart 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)

[8]ページ先頭

©2009-2025 Movatter.jp