Skip to content

Commit 6d35f84

Browse files
committed
fix
1 parent b3d7b7b commit 6d35f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/maybe_uninit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ use crate::mem::ManuallyDrop;
167167
///
168168
/// // For each item in the array, drop if we allocated it.
169169
/// for elem in &mut data[0..data_len] {
170-
/// unsafe { ptr::drop_in_place(elem.ptr()); }
170+
/// unsafe { ptr::drop_in_place(elem.as_mut_ptr()); }
171171
/// }
172172
/// ```
173173
///

0 commit comments

Comments
 (0)