Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
This typo looks unnecessary
  • Loading branch information
Alcaro authored Aug 31, 2024
1 parent ae18edf commit c33b3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c33b3df

Please sign in to comment.