Skip to content

Commit 4eeb623

Browse files
committed
Fix intra-rustdoc links
1 parent 170d933 commit 4eeb623

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/liballoc/boxed.rs

+4
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ impl<T> Box<mem::MaybeUninit<T>> {
200200
/// Calling this when the content is not yet fully initialized
201201
/// causes immediate undefined behavior.
202202
///
203+
/// [`MaybeUninit::assume_init`]: ../../std/mem/union.MaybeUninit.html#method.assume_init
204+
///
203205
/// # Examples
204206
///
205207
/// ```
@@ -234,6 +236,8 @@ impl<T> Box<[mem::MaybeUninit<T>]> {
234236
/// Calling this when the content is not yet fully initialized
235237
/// causes immediate undefined behavior.
236238
///
239+
/// [`MaybeUninit::assume_init`]: ../../std/mem/union.MaybeUninit.html#method.assume_init
240+
///
237241
/// # Examples
238242
///
239243
/// ```

src/liballoc/rc.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ impl<T> Rc<mem::MaybeUninit<T>> {
471471
/// Calling this when the content is not yet fully initialized
472472
/// causes immediate undefined behavior.
473473
///
474+
/// [`MaybeUninit::assume_init`]: ../../std/mem/union.MaybeUninit.html#method.assume_init
475+
///
474476
/// # Examples
475477
///
476478
/// ```
@@ -513,6 +515,8 @@ impl<T> Rc<[mem::MaybeUninit<T>]> {
513515
/// Calling this when the content is not yet fully initialized
514516
/// causes immediate undefined behavior.
515517
///
518+
/// [`MaybeUninit::assume_init`]: ../../std/mem/union.MaybeUninit.html#method.assume_init
519+
///
516520
/// # Examples
517521
///
518522
/// ```
@@ -745,7 +749,7 @@ impl<T: ?Sized> Rc<T> {
745749
///
746750
/// # Safety
747751
///
748-
/// There must be no other `Rc` or [`Weak`][weak] pointers to the same value.
752+
/// There must be no other `Rc` or [`Weak`] pointers to the same value.
749753
/// This is the case for example immediately after `Rc::new`.
750754
///
751755
/// # Examples

src/liballoc/sync.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ impl<T> Arc<mem::MaybeUninit<T>> {
455455
/// Calling this when the content is not yet fully initialized
456456
/// causes immediate undefined behavior.
457457
///
458+
/// [`MaybeUninit::assume_init`]: ../../std/mem/union.MaybeUninit.html#method.assume_init
459+
///
458460
/// # Examples
459461
///
460462
/// ```
@@ -497,6 +499,8 @@ impl<T> Arc<[mem::MaybeUninit<T>]> {
497499
/// Calling this when the content is not yet fully initialized
498500
/// causes immediate undefined behavior.
499501
///
502+
/// [`MaybeUninit::assume_init`]: ../../std/mem/union.MaybeUninit.html#method.assume_init
503+
///
500504
/// # Examples
501505
///
502506
/// ```
@@ -1130,7 +1134,7 @@ impl<T: ?Sized> Arc<T> {
11301134
///
11311135
/// # Safety
11321136
///
1133-
/// There must be no other `Arc` or [`Weak`][weak] pointers to the same value.
1137+
/// There must be no other `Arc` or [`Weak`] pointers to the same value.
11341138
/// This is the case for example immediately after `Rc::new`.
11351139
///
11361140
/// # Examples

0 commit comments

Comments
 (0)