diff options
| author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2023-04-11 00:49:38 -0400 |
|---|---|---|
| committer | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2023-04-26 02:10:22 -0400 |
| commit | 9cb934600533f6bee22b7396d1ff013b381322a8 (patch) | |
| tree | 0f13a10b5ef3ad8e37f892ecfd088e67e6e255e7 /library/std/src/thread | |
| parent | c6fb7b9815aea87fb5ced1c683212871699c907c (diff) | |
| download | rust-9cb934600533f6bee22b7396d1ff013b381322a8.tar.gz rust-9cb934600533f6bee22b7396d1ff013b381322a8.zip | |
Spelling library/
* advance * aligned * borrowed * calculate * debugable * debuggable * declarations * desugaring * documentation * enclave * ignorable * initialized * iterator * kaboom * monomorphization * nonexistent * optimizer * panicking * process * reentrant * rustonomicon * the * uninitialized Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 13b845b25c9..40e8e5a629e 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -494,7 +494,7 @@ impl Builder { MaybeDangling(mem::MaybeUninit::new(x)) } fn into_inner(self) -> T { - // SAFETY: we are always initiailized. + // SAFETY: we are always initialized. let ret = unsafe { self.0.assume_init_read() }; // Make sure we don't drop. mem::forget(self); @@ -503,7 +503,7 @@ impl Builder { } impl<T> Drop for MaybeDangling<T> { fn drop(&mut self) { - // SAFETY: we are always initiailized. + // SAFETY: we are always initialized. unsafe { self.0.assume_init_drop() }; } } |
