]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in mem::uninitialized doc
authorMika Lehtinen <smibu90@gmail.com>
Wed, 24 Jul 2019 08:34:30 +0000 (11:34 +0300)
committerMika Lehtinen <smibu90@gmail.com>
Wed, 24 Jul 2019 08:34:30 +0000 (11:34 +0300)
src/libcore/mem/mod.rs

index f2729168763bb54f79c960f317db4aa800807180..bb81d7b794bea767f692e0dbbbc9e5aad4a79fcb 100644 (file)
@@ -456,7 +456,7 @@ pub unsafe fn zeroed<T>() -> 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<T>`] instead.
+/// **This function is deprecated.** Use [`MaybeUninit<T>`] instead.
 ///
 /// The reason for deprecation is that the function basically cannot be used
 /// correctly: [the Rust compiler assumes][inv] that values are properly initialized.