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.
1 parent ae18edf commit c33b3dfCopy full SHA for c33b3df
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