We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9649706 commit 7d728e5Copy full SHA for 7d728e5
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