Fix typo in mem::uninitialized doc
This commit is contained in:
parent
a7f28678bb
commit
a44f43e8b5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user