Fixed more typos in library/core
This commit is contained in:
parent
92f45900bb
commit
cbf92fcf39
@ -37,7 +37,7 @@
|
|||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// Creating muliple copies of a `String`:
|
/// Creating multiple copies of a `String`:
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![feature(array_repeat)]
|
/// #![feature(array_repeat)]
|
||||||
///
|
///
|
||||||
|
@ -157,7 +157,7 @@ trait AsyncDestruct {
|
|||||||
unsafe { crate::ops::fallback_surface_drop(&mut *ptr) }
|
unsafe { crate::ops::fallback_surface_drop(&mut *ptr) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Wraps a future to continue outputing `Poll::Ready(())` once after
|
/// Wraps a future to continue outputting `Poll::Ready(())` once after
|
||||||
/// wrapped future completes by returning `Poll::Ready(())` on poll. This
|
/// wrapped future completes by returning `Poll::Ready(())` on poll. This
|
||||||
/// is useful for constructing async destructors to guarantee this
|
/// is useful for constructing async destructors to guarantee this
|
||||||
/// "fuse" property
|
/// "fuse" property
|
||||||
@ -223,7 +223,7 @@ async fn chain<F, G>(first: F, last: G)
|
|||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// Same as `async_drop_in_place` except is lazy to avoid creating
|
/// Same as `async_drop_in_place` except is lazy to avoid creating
|
||||||
/// multiple mutable refernces.
|
/// multiple mutable references.
|
||||||
#[lang = "async_drop_defer"]
|
#[lang = "async_drop_defer"]
|
||||||
async unsafe fn defer<T: ?Sized>(to_drop: *mut T) {
|
async unsafe fn defer<T: ?Sized>(to_drop: *mut T) {
|
||||||
// SAFETY: same safety requirements as `async_drop_in_place`
|
// SAFETY: same safety requirements as `async_drop_in_place`
|
||||||
|
@ -310,7 +310,7 @@ fn UnwindTerminate(reason: UnwindTerminateReason) -> UnwindActionArg
|
|||||||
);
|
);
|
||||||
define!(
|
define!(
|
||||||
"mir_unwind_cleanup",
|
"mir_unwind_cleanup",
|
||||||
/// An unwind action that continues execution in a given basic blok.
|
/// An unwind action that continues execution in a given basic block.
|
||||||
fn UnwindCleanup(goto: BasicBlock) -> UnwindActionArg
|
fn UnwindCleanup(goto: BasicBlock) -> UnwindActionArg
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1072,7 +1072,7 @@ macro_rules! format_args_nl {
|
|||||||
/// If the environment variable is not defined, then a compilation error
|
/// If the environment variable is not defined, then a compilation error
|
||||||
/// will be emitted. To not emit a compile error, use the [`option_env!`]
|
/// will be emitted. To not emit a compile error, use the [`option_env!`]
|
||||||
/// macro instead. A compilation error will also be emitted if the
|
/// macro instead. A compilation error will also be emitted if the
|
||||||
/// environment variable is not a vaild Unicode string.
|
/// environment variable is not a valid Unicode string.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user