Skip to content

Commit

Permalink
Rollup merge of rust-lang#62926 - Smibu:fix-typo, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix typo in mem::uninitialized doc
  • Loading branch information
Centril authored Jul 24, 2019
2 parents c44e29b + a44f43e commit 0466237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0466237

Please sign in to comment.