mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
Fix doc comment on MaybeUninit::drop.
This commit is contained in:
@@ -576,8 +576,7 @@ pub unsafe fn read(&self) -> T {
|
||||
|
||||
/// Drops the contained value in place.
|
||||
///
|
||||
/// If you have ownership of the `MaybeUninit`, it is preferable to use
|
||||
/// [`assume_init`] instead, which prevents duplicating the content.
|
||||
/// If you have ownership of the `MaybeUninit`, you can use [`assume_init`] instead.
|
||||
///
|
||||
/// # Safety
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user