We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d7b7b commit 6d35f84Copy full SHA for 6d35f84
library/core/src/mem/maybe_uninit.rs
@@ -167,7 +167,7 @@ use crate::mem::ManuallyDrop;
167
///
168
/// // For each item in the array, drop if we allocated it.
169
/// for elem in &mut data[0..data_len] {
170
-/// unsafe { ptr::drop_in_place(elem.ptr()); }
+/// unsafe { ptr::drop_in_place(elem.as_mut_ptr()); }
171
/// }
172
/// ```
173
0 commit comments