From c33b3dfa8ec3ed9499b7f9b482de92f427ecd87e Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sat, 31 Aug 2024 19:09:41 +0200 Subject: [PATCH] Update mod.rs This typo looks unnecessary --- core/src/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mem/mod.rs b/core/src/mem/mod.rs index e602b497d171a..fed484ae3cd12 100644 --- a/core/src/mem/mod.rs +++ b/core/src/mem/mod.rs @@ -612,7 +612,7 @@ pub const fn needs_drop() -> bool { /// /// There is no guarantee that an all-zero byte-pattern represents a valid value /// of some type `T`. For example, the all-zero byte-pattern is not a valid value -/// for reference types (`&T`, `&mut T`) and functions pointers. Using `zeroed` +/// for reference types (`&T`, `&mut T`) and function pointers. Using `zeroed` /// on such types causes immediate [undefined behavior][ub] because [the Rust /// compiler assumes][inv] that there always is a valid value in a variable it /// considers initialized.