Skip to content

Commit cbf92fc

Browse files
committed
Fixed more typos in library/core
1 parent 92f4590 commit cbf92fc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

library/core/src/array/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub use iter::IntoIter;
3737
///
3838
/// # Example
3939
///
40-
/// Creating muliple copies of a `String`:
40+
/// Creating multiple copies of a `String`:
4141
/// ```rust
4242
/// #![feature(array_repeat)]
4343
///

library/core/src/future/async_drop.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async unsafe fn surface_drop_in_place<T: Drop + ?Sized>(ptr: *mut T) {
157157
unsafe { crate::ops::fallback_surface_drop(&mut *ptr) }
158158
}
159159

160-
/// Wraps a future to continue outputing `Poll::Ready(())` once after
160+
/// Wraps a future to continue outputting `Poll::Ready(())` once after
161161
/// wrapped future completes by returning `Poll::Ready(())` on poll. This
162162
/// is useful for constructing async destructors to guarantee this
163163
/// "fuse" property
@@ -223,7 +223,7 @@ where
223223
/// # Safety
224224
///
225225
/// Same as `async_drop_in_place` except is lazy to avoid creating
226-
/// multiple mutable refernces.
226+
/// multiple mutable references.
227227
#[lang = "async_drop_defer"]
228228
async unsafe fn defer<T: ?Sized>(to_drop: *mut T) {
229229
// SAFETY: same safety requirements as `async_drop_in_place`

library/core/src/intrinsics/mir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ define!(
310310
);
311311
define!(
312312
"mir_unwind_cleanup",
313-
/// An unwind action that continues execution in a given basic blok.
313+
/// An unwind action that continues execution in a given basic block.
314314
fn UnwindCleanup(goto: BasicBlock) -> UnwindActionArg
315315
);
316316

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ pub(crate) mod builtin {
10721072
/// If the environment variable is not defined, then a compilation error
10731073
/// will be emitted. To not emit a compile error, use the [`option_env!`]
10741074
/// macro instead. A compilation error will also be emitted if the
1075-
/// environment variable is not a vaild Unicode string.
1075+
/// environment variable is not a valid Unicode string.
10761076
///
10771077
/// # Examples
10781078
///

0 commit comments

Comments
 (0)