diff options
| author | kennytm <kennytm@gmail.com> | 2018-12-28 22:00:33 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-12-28 22:00:33 +0800 |
| commit | 9223512fbe044820981138903a55a17dfdf6b3d4 (patch) | |
| tree | 626ebbdd053d3e498ce434deef2a7dc88f543b1d | |
| parent | 48742c68d9e53fba6b48c211140db595fbaa491e (diff) | |
| download | rust-9223512fbe044820981138903a55a17dfdf6b3d4.tar.gz rust-9223512fbe044820981138903a55a17dfdf6b3d4.zip | |
Removed aligned ZST requirement from docs of read_/write_unaligned.
This is just a copy-paste error.
| -rw-r--r-- | src/libcore/ptr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index b9420f32a94..55a72d7a9a9 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -591,7 +591,7 @@ pub 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 and properly aligned. +/// Note that even if `T` has size `0`, the pointer must be non-NULL. /// /// [`Copy`]: ../marker/trait.Copy.html /// [`read`]: ./fn.read.html @@ -759,7 +759,7 @@ pub 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 and properly aligned. +/// Note that even if `T` has size `0`, the pointer must be non-NULL. /// /// [valid]: ../ptr/index.html#safety /// |
