Skip to content

Commit 360cfe1

Browse files
authored
Unrolled build for rust-lang#129826
Rollup merge of rust-lang#129826 - Alcaro:patch-1, r=workingjubilee library: Fix typo in `core::mem` This typo looks unnecessary
2 parents d571ae8 + 7d728e5 commit 360cfe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ pub const fn needs_drop<T: ?Sized>() -> bool {
612612
///
613613
/// There is no guarantee that an all-zero byte-pattern represents a valid value
614614
/// 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`
615+
/// for reference types (`&T`, `&mut T`) and function pointers. Using `zeroed`
616616
/// on such types causes immediate [undefined behavior][ub] because [the Rust
617617
/// compiler assumes][inv] that there always is a valid value in a variable it
618618
/// considers initialized.

0 commit comments

Comments
 (0)