Skip to content

Commit 0466237

Browse files
authored
Rollup merge of #62926 - Smibu:fix-typo, r=jonas-schievink
Fix typo in mem::uninitialized doc
2 parents c44e29b + a44f43e commit 0466237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ pub unsafe fn zeroed<T>() -> T {
456456
/// Bypasses Rust's normal memory-initialization checks by pretending to
457457
/// produce a value of type `T`, while doing nothing at all.
458458
///
459-
/// **This functon is deprecated.** Use [`MaybeUninit<T>`] instead.
459+
/// **This function is deprecated.** Use [`MaybeUninit<T>`] instead.
460460
///
461461
/// The reason for deprecation is that the function basically cannot be used
462462
/// correctly: [the Rust compiler assumes][inv] that values are properly initialized.

0 commit comments

Comments
 (0)