Skip to content

Commit 55cedc9

Browse files
oliveredgetgitbot
authored and
gitbot
committed
chore: fix typos
1 parent a3f31d7 commit 55cedc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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)]

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

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
}

0 commit comments

Comments
 (0)