From 13a00963a6684455c129f19a643b65226f438f37 Mon Sep 17 00:00:00 2001 From: Brent Kerby Date: Sat, 18 May 2019 10:03:12 -0600 Subject: [PATCH] fix copy-paste typo in docs for ptr::read_volatile --- src/libcore/ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index b6de9f57b01..ada784e9ce7 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -837,7 +837,7 @@ pub unsafe fn write_unaligned(dst: *mut T, src: T) { /// /// * `src` must be properly aligned. /// -/// Like [`read`], `read_unaligned` creates a bitwise copy of `T`, regardless of +/// Like [`read`], `read_volatile` creates a bitwise copy of `T`, regardless of /// 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]. /// However, storing non-[`Copy`] types in volatile memory is almost certainly