fix
This commit is contained in:
parent
b3d7b7bdcb
commit
6d35f8475f
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ use crate::mem::ManuallyDrop;
|
|||
///
|
||||
/// // For each item in the array, drop if we allocated it.
|
||||
/// for elem in &mut data[0..data_len] {
|
||||
/// unsafe { ptr::drop_in_place(elem.ptr()); }
|
||||
/// unsafe { ptr::drop_in_place(elem.as_mut_ptr()); }
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue