about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathis Bottinelli <mathis.bottinelli@student-cs.fr>2025-05-14 09:02:22 +0200
committerMathis Bottinelli <mathis.bottinelli@student-cs.fr>2025-05-14 09:02:22 +0200
commitc610177558bc62c40bacc105c7eb4130ea66db72 (patch)
tree9416789ce066abf656b4cf7cdcdcacfb2adc37f0
parent7188f453111502962326022740e2657fce0a6939 (diff)
downloadrust-c610177558bc62c40bacc105c7eb4130ea66db72.tar.gz
rust-c610177558bc62c40bacc105c7eb4130ea66db72.zip
MaybeUninit::write: fix doc
-rw-r--r--library/core/src/mem/maybe_uninit.rs2
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