Skip to content

Commit 7d728e5

Browse files
authored
Update mod.rs
This typo looks unnecessary
1 parent 9649706 commit 7d728e5

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)