]> git.lizzy.rs Git - rust.git/commitdiff
Fix doc comment on MaybeUninit::drop.
authorMara Bos <m-ou.se@m-ou.se>
Tue, 8 Sep 2020 17:34:23 +0000 (19:34 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Tue, 8 Sep 2020 17:34:23 +0000 (19:34 +0200)
library/core/src/mem/maybe_uninit.rs

index e826ec0a5e3eee78c53668203f6293e7c3be8801..001ee0898d45eb58af775864cedf84340c915e0f 100644 (file)
@@ -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
     ///