Skip to content

Commit caef832

Browse files
committed
Fix doc comment on MaybeUninit::drop.
1 parent 75e471a commit caef832

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/core/src/mem/maybe_uninit.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,7 @@ impl<T> MaybeUninit<T> {
576576

577577
/// Drops the contained value in place.
578578
///
579-
/// If you have ownership of the `MaybeUninit`, it is preferable to use
580-
/// [`assume_init`] instead, which prevents duplicating the content.
579+
/// If you have ownership of the `MaybeUninit`, you can use [`assume_init`] instead.
581580
///
582581
/// # Safety
583582
///

0 commit comments

Comments
 (0)