From a44f43e8b5df5d6fd99b47a1c77e3f62d1c5de59 Mon Sep 17 00:00:00 2001 From: Mika Lehtinen Date: Wed, 24 Jul 2019 11:34:30 +0300 Subject: [PATCH] Fix typo in mem::uninitialized doc --- src/libcore/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index f2729168763bb..bb81d7b794bea 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -456,7 +456,7 @@ pub unsafe fn zeroed() -> T { /// Bypasses Rust's normal memory-initialization checks by pretending to /// produce a value of type `T`, while doing nothing at all. /// -/// **This functon is deprecated.** Use [`MaybeUninit`] instead. +/// **This function is deprecated.** Use [`MaybeUninit`] instead. /// /// The reason for deprecation is that the function basically cannot be used /// correctly: [the Rust compiler assumes][inv] that values are properly initialized.