mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Update mod.rs
This typo looks unnecessary
This commit is contained in:
parent
9649706ead
commit
7d728e54d9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user