Fix typo in mem::uninitialized doc

This commit is contained in:
Mika Lehtinen
2019-07-24 11:34:30 +03:00
parent a7f28678bb
commit a44f43e8b5

View File

@@ -456,7 +456,7 @@ pub unsafe fn zeroed<T>() -> T {
/// Bypasses Rust's normal memory-initialization checks by pretending to /// Bypasses Rust's normal memory-initialization checks by pretending to
/// produce a value of type `T`, while doing nothing at all. /// 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 /// The reason for deprecation is that the function basically cannot be used
/// correctly: [the Rust compiler assumes][inv] that values are properly initialized. /// correctly: [the Rust compiler assumes][inv] that values are properly initialized.