diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-08 19:34:23 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-08 19:34:23 +0200 |
| commit | caef83282bfede657faf38d43967f577841b3be4 (patch) | |
| tree | 9be07aa9cfa2ad1e25f23871a33c2b3b1ba09d56 /library/core/src | |
| parent | 75e471ade9ea6095eef6cd4ef35cfc0b8bfc9410 (diff) | |
| download | rust-caef83282bfede657faf38d43967f577841b3be4.tar.gz rust-caef83282bfede657faf38d43967f577841b3be4.zip | |
Fix doc comment on MaybeUninit::drop.
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index e826ec0a5e3..001ee0898d4 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -576,8 +576,7 @@ impl<T> MaybeUninit<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 /// |
