8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ad03e0 + c33b3df commit ef033b0Copy full SHA for ef033b0
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