Skip to content

Commit

Permalink
fix doc for read write unaligned in zst operation
Browse files Browse the repository at this point in the history
  • Loading branch information
DiuDiu777 committed Dec 31, 2024
1 parent 4e5fec2 commit d9ef419
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/core/src/ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1403,8 +1403,6 @@ pub const unsafe fn read<T>(src: *const T) -> T {
/// whether `T` is [`Copy`]. If `T` is not [`Copy`], using both the returned
/// value and the value at `*src` can [violate memory safety][read-ownership].
///
/// Note that even if `T` has size `0`, the pointer must be non-null.
///
/// [read-ownership]: read#ownership-of-the-returned-value
/// [valid]: self#safety
///
Expand Down Expand Up @@ -1611,8 +1609,6 @@ pub const unsafe fn write<T>(dst: *mut T, src: T) {
///
/// * `dst` must be [valid] for writes.
///
/// Note that even if `T` has size `0`, the pointer must be non-null.
///
/// [valid]: self#safety
///
/// ## On `packed` structs
Expand Down

0 comments on commit d9ef419

Please sign in to comment.