Skip to content

Commit e33c428

Browse files
committed
Auto merge of #134729 - oliveredget:typo, r=jieyouxu
chore: fix typos Fix some typos, thank you very much.
2 parents a92c3cf + be1d5dd commit e33c428

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ pub(crate) mod builtin {
15491549
/// NAME is a string that represents a valid function name.
15501550
/// MODE is any of Forward, Reverse, ForwardFirst, ReverseFirst.
15511551
/// INPUT_ACTIVITIES consists of one valid activity for each input parameter.
1552-
/// OUTPUT_ACTIVITY must not be set if we implicitely return nothing (or explicitely return
1552+
/// OUTPUT_ACTIVITY must not be set if we implicitly return nothing (or explicitly return
15531553
/// `-> ()`). Otherwise it must be set to one of the allowed activities.
15541554
#[unstable(feature = "autodiff", issue = "124509")]
15551555
#[allow_internal_unstable(rustc_attrs)]

library/core/src/str/lossy.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ impl [u8] {
88
/// Creates an iterator over the contiguous valid UTF-8 ranges of this
99
/// slice, and the non-UTF-8 fragments in between.
1010
///
11-
/// See the [`Utf8Chunk`] type for documenation of the items yielded by this iterator.
11+
/// See the [`Utf8Chunk`] type for documentation of the items yielded by this iterator.
1212
///
1313
/// # Examples
1414
///
@@ -150,7 +150,7 @@ impl fmt::Debug for Debug<'_> {
150150
/// If you want a simple conversion from UTF-8 byte slices to string slices,
151151
/// [`from_utf8`] is easier to use.
152152
///
153-
/// See the [`Utf8Chunk`] type for documenation of the items yielded by this iterator.
153+
/// See the [`Utf8Chunk`] type for documentation of the items yielded by this iterator.
154154
///
155155
/// [byteslice]: slice
156156
/// [`from_utf8`]: super::from_utf8

library/core/tests/iter/adapters/take.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fn test_reverse_on_zip() {
255255

256256
let zipped_iter = vec_1.iter().zip(core::iter::repeat(0).take(20));
257257

258-
// Cannot call rev here for automatic reversed zip constuction
258+
// Cannot call rev here for automatic reversed zip construction
259259
for (&one, zero) in zipped_iter.rev() {
260260
assert_eq!((1, 0), (one, zero));
261261
}

src/tools/compiletest/src/read2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl ProcOutput {
9090
.count();
9191
*filtered_len -= matches * path_bytes.len();
9292

93-
// We can't just remove the length of the filtered path from the output lenght,
93+
// We can't just remove the length of the filtered path from the output length,
9494
// otherwise a compiler emitting only filtered paths would OOM compiletest. Add
9595
// a fixed placeholder length for each path to prevent that.
9696
*filtered_len += matches * FILTERED_PATHS_PLACEHOLDER_LEN;

tests/ui/traits/non_lifetime_binders/basic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ check-pass
2-
// Basic test that show's we can succesfully typeck a `for<T>` where clause.
2+
// Basic test that show's we can successfully typeck a `for<T>` where clause.
33

44
#![feature(non_lifetime_binders)]
55
//~^ WARN the feature `non_lifetime_binders` is incomplete

0 commit comments

Comments
 (0)