Skip to content

Commit 94da307

Browse files
authored
Rollup merge of #60943 - blkerby:master, r=Mark-Simulacrum
fix copy-paste typo in docs for ptr::read_volatile
2 parents 7cbca59 + 13a0096 commit 94da307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ pub unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
837837
///
838838
/// * `src` must be properly aligned.
839839
///
840-
/// Like [`read`], `read_unaligned` creates a bitwise copy of `T`, regardless of
840+
/// Like [`read`], `read_volatile` creates a bitwise copy of `T`, regardless of
841841
/// whether `T` is [`Copy`]. If `T` is not [`Copy`], using both the returned
842842
/// value and the value at `*src` can [violate memory safety][read-ownership].
843843
/// However, storing non-[`Copy`] types in volatile memory is almost certainly

0 commit comments

Comments
 (0)