Fix broken doc links in MaybeUninit.

This commit is contained in:
Mara Bos 2020-09-09 18:56:16 +02:00
parent a94b2cb034
commit 43c7a9b72b
1 changed files with 3 additions and 0 deletions

View File

@ -472,6 +472,8 @@ impl<T> MaybeUninit<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 @@ impl<T> MaybeUninit<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