]> git.lizzy.rs Git - rust.git/commitdiff
Fix broken doc links in MaybeUninit.
authorMara Bos <m-ou.se@m-ou.se>
Wed, 9 Sep 2020 16:56:16 +0000 (18:56 +0200)
committerMara Bos <m-ou.se@m-ou.se>
Wed, 9 Sep 2020 16:56:16 +0000 (18:56 +0200)
library/core/src/mem/maybe_uninit.rs

index 0d1d563b5ceec95e9f64c477fff677d19d32ad39..f68e2b8208982c9852a85c96b02e338598d01f47 100644 (file)
@@ -472,6 +472,8 @@ pub const fn as_mut_ptr(&mut self) -> *mut T {
     /// *immediate* undefined behavior, but will cause undefined behavior with most
     /// safe operations (including dropping it).
     ///
+    /// [`Vec<T>`]: ../../std/vec/struct.Vec.html
+    ///
     /// # Examples
     ///
     /// Correct usage of this method:
@@ -593,6 +595,7 @@ pub unsafe fn assume_init_read(&self) -> T {
     /// `Vec<T>` however will cause undefined behaviour.
     ///
     /// [`assume_init`]: MaybeUninit::assume_init
+    /// [`Vec<T>`]: ../../std/vec/struct.Vec.html
     #[unstable(feature = "maybe_uninit_extra", issue = "63567")]
     pub unsafe fn assume_init_drop(&mut self) {
         // SAFETY: the caller must guarantee that `self` is initialized and