Skip to content

Commit 9223512

Browse files
committed
Removed aligned ZST requirement from docs of read_/write_unaligned.
This is just a copy-paste error.
1 parent 48742c6 commit 9223512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ pub unsafe fn read<T>(src: *const T) -> T {
591591
/// whether `T` is [`Copy`]. If `T` is not [`Copy`], using both the returned
592592
/// value and the value at `*src` can [violate memory safety][read-ownership].
593593
///
594-
/// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
594+
/// Note that even if `T` has size `0`, the pointer must be non-NULL.
595595
///
596596
/// [`Copy`]: ../marker/trait.Copy.html
597597
/// [`read`]: ./fn.read.html
@@ -759,7 +759,7 @@ pub unsafe fn write<T>(dst: *mut T, src: T) {
759759
///
760760
/// * `dst` must be [valid] for writes.
761761
///
762-
/// Note that even if `T` has size `0`, the pointer must be non-NULL and properly aligned.
762+
/// Note that even if `T` has size `0`, the pointer must be non-NULL.
763763
///
764764
/// [valid]: ../ptr/index.html#safety
765765
///

0 commit comments

Comments
 (0)