Skip to content

Commit f69fab5

Browse files
committed
Fix links
1 parent 569a489 commit f69fab5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/liballoc/boxed.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ impl<T> Box<[T]> {
366366
}
367367

368368
impl<T, A: AllocRef> Box<[T], A> {
369-
/// Behaves like [`new_uninit_slice`] but generic over the allocator
369+
/// Behaves like [`new_uninit_slice`] but generic over the allocator.
370+
///
371+
/// [`new_uninit_slice`]: #method.new_uninit_slice
370372
#[unstable(feature = "new_uninit", issue = "63291")]
371373
pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> {
372374
unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) }
@@ -590,6 +592,8 @@ impl<T: ?Sized, A: AllocRef> Box<T, A> {
590592
}
591593

592594
/// Behaves like [`into_raw`] but also returns the allocator
595+
///
596+
/// [`into_raw`]: #method.into_raw
593597
#[stable(feature = "box_raw", since = "1.4.0")]
594598
#[inline]
595599
pub fn into_raw_with_alloc(b: Self) -> (*mut T, A) {
@@ -707,7 +711,7 @@ impl<T: ?Sized, A: AllocRef> Box<T, A> {
707711

708712
/// Behaves like [`leak`] but also returns the allocator
709713
///
710-
/// [`leak`]: Self::leak
714+
/// [`leak`]: #method.leak
711715
#[unstable(feature = "allocator_api", issue = "32838")]
712716
#[inline]
713717
pub fn leak_with_alloc<'a>(b: Self) -> (&'a mut T, A)

src/liballoc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ impl<T, A: AllocRef> Vec<T, A> {
602602

603603
/// Behaves like [`into_raw_parts`] but also returns the allocator.
604604
///
605-
/// [`into_raw_parts`]: Self::into_raw_parts
605+
/// [`into_raw_parts`]: #method.into_raw_parts
606606
#[unstable(feature = "allocator_api", issue = "32838")]
607607
pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) {
608608
let mut me = ManuallyDrop::new(self);

0 commit comments

Comments
 (0)