diff options
| author | Mathis Bottinelli <mathis.bottinelli@student-cs.fr> | 2025-05-14 09:02:22 +0200 |
|---|---|---|
| committer | Mathis Bottinelli <mathis.bottinelli@student-cs.fr> | 2025-05-14 09:02:22 +0200 |
| commit | c610177558bc62c40bacc105c7eb4130ea66db72 (patch) | |
| tree | 9416789ce066abf656b4cf7cdcdcacfb2adc37f0 | |
| parent | 7188f453111502962326022740e2657fce0a6939 (diff) | |
| download | rust-c610177558bc62c40bacc105c7eb4130ea66db72.tar.gz rust-c610177558bc62c40bacc105c7eb4130ea66db72.zip | |
MaybeUninit::write: fix doc
| -rw-r--r-- | library/core/src/mem/maybe_uninit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/mem/maybe_uninit.rs b/library/core/src/mem/maybe_uninit.rs index d0be82adb6b..63a479ed8dd 100644 --- a/library/core/src/mem/maybe_uninit.rs +++ b/library/core/src/mem/maybe_uninit.rs @@ -391,7 +391,7 @@ impl<T> MaybeUninit<T> { /// For your convenience, this also returns a mutable reference to the /// (now safely initialized) contents of `self`. /// - /// As the content is stored inside a `MaybeUninit`, the destructor is not + /// As the content is stored inside a `ManuallyDrop`, the destructor is not /// run for the inner data if the MaybeUninit leaves scope without a call to /// [`assume_init`], [`assume_init_drop`], or similar. Code that receives /// the mutable reference returned by this function needs to keep this in |
