Skip to content

Commit c610177

Browse files
committed
MaybeUninit::write: fix doc
1 parent 7188f45 commit c610177

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
@@ -391,7 +391,7 @@ impl<T> MaybeUninit<T> {
391391
/// For your convenience, this also returns a mutable reference to the
392392
/// (now safely initialized) contents of `self`.
393393
///
394-
/// As the content is stored inside a `MaybeUninit`, the destructor is not
394+
/// As the content is stored inside a `ManuallyDrop`, the destructor is not
395395
/// run for the inner data if the MaybeUninit leaves scope without a call to
396396
/// [`assume_init`], [`assume_init_drop`], or similar. Code that receives
397397
/// the mutable reference returned by this function needs to keep this in

0 commit comments

Comments
 (0)