diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-31 20:36:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-31 20:36:28 +0200 |
| commit | 4151fd407e41bfdcd166ebe07ed06d8303921c6c (patch) | |
| tree | 5caedc24bebd2eafddb252f705e49049e77b6d0d | |
| parent | 828f7c895a5c44161811b566e9bee6451536297f (diff) | |
| parent | 7d728e54d97c6062c3ad2ccbc6ac48faa99bce31 (diff) | |
| download | rust-4151fd407e41bfdcd166ebe07ed06d8303921c6c.tar.gz rust-4151fd407e41bfdcd166ebe07ed06d8303921c6c.zip | |
Rollup merge of #129826 - Alcaro:patch-1, r=workingjubilee
library: Fix typo in `core::mem` This typo looks unnecessary
| -rw-r--r-- | library/core/src/mem/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/mod.rs b/library/core/src/mem/mod.rs index e602b497d17..fed484ae3cd 100644 --- a/library/core/src/mem/mod.rs +++ b/library/core/src/mem/mod.rs @@ -612,7 +612,7 @@ pub const fn needs_drop<T: ?Sized>() -> 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. |
