Skip to content

Commit 43c7a9b

Browse files
committed
Fix broken doc links in MaybeUninit.
1 parent a94b2cb commit 43c7a9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/mem/maybe_uninit.rs

+3
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ impl<T> MaybeUninit<T> {
472472
/// *immediate* undefined behavior, but will cause undefined behavior with most
473473
/// safe operations (including dropping it).
474474
///
475+
/// [`Vec<T>`]: ../../std/vec/struct.Vec.html
476+
///
475477
/// # Examples
476478
///
477479
/// Correct usage of this method:
@@ -593,6 +595,7 @@ impl<T> MaybeUninit<T> {
593595
/// `Vec<T>` however will cause undefined behaviour.
594596
///
595597
/// [`assume_init`]: MaybeUninit::assume_init
598+
/// [`Vec<T>`]: ../../std/vec/struct.Vec.html
596599
#[unstable(feature = "maybe_uninit_extra", issue = "63567")]
597600
pub unsafe fn assume_init_drop(&mut self) {
598601
// SAFETY: the caller must guarantee that `self` is initialized and

0 commit comments

Comments
 (0)