We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d571ae8 + 7d728e5 commit 360cfe1Copy full SHA for 360cfe1
library/core/src/mem/mod.rs
@@ -612,7 +612,7 @@ pub const fn needs_drop<T: ?Sized>() -> bool {
612
///
613
/// There is no guarantee that an all-zero byte-pattern represents a valid value
614
/// of some type `T`. For example, the all-zero byte-pattern is not a valid value
615
-/// for reference types (`&T`, `&mut T`) and functions pointers. Using `zeroed`
+/// for reference types (`&T`, `&mut T`) and function pointers. Using `zeroed`
616
/// on such types causes immediate [undefined behavior][ub] because [the Rust
617
/// compiler assumes][inv] that there always is a valid value in a variable it
618
/// considers initialized.
0 commit comments