Skip to content

Commit ccb513e

Browse files
committed
Improve ptr::read docs
Fixes #21491
1 parent fa28f02 commit ccb513e

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
@@ -190,7 +190,7 @@ pub unsafe fn replace<T>(dest: *mut T, mut src: T) -> T {
190190
src
191191
}
192192

193-
/// Reads the value from `src` without dropping it. This leaves the
193+
/// Reads the value from `src` without moving it. This leaves the
194194
/// memory in `src` unchanged.
195195
///
196196
/// # Safety

0 commit comments

Comments
 (0)