@@ -366,7 +366,9 @@ impl<T> Box<[T]> {
366
366
}
367
367
368
368
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
370
372
#[ unstable( feature = "new_uninit" , issue = "63291" ) ]
371
373
pub fn new_uninit_slice_in ( len : usize , alloc : A ) -> Box < [ mem:: MaybeUninit < T > ] , A > {
372
374
unsafe { RawVec :: with_capacity_in ( len, alloc) . into_box ( len) }
@@ -590,6 +592,8 @@ impl<T: ?Sized, A: AllocRef> Box<T, A> {
590
592
}
591
593
592
594
/// Behaves like [`into_raw`] but also returns the allocator
595
+ ///
596
+ /// [`into_raw`]: #method.into_raw
593
597
#[ stable( feature = "box_raw" , since = "1.4.0" ) ]
594
598
#[ inline]
595
599
pub fn into_raw_with_alloc ( b : Self ) -> ( * mut T , A ) {
@@ -707,7 +711,7 @@ impl<T: ?Sized, A: AllocRef> Box<T, A> {
707
711
708
712
/// Behaves like [`leak`] but also returns the allocator
709
713
///
710
- /// [`leak`]: Self:: leak
714
+ /// [`leak`]: #method. leak
711
715
#[ unstable( feature = "allocator_api" , issue = "32838" ) ]
712
716
#[ inline]
713
717
pub fn leak_with_alloc < ' a > ( b : Self ) -> ( & ' a mut T , A )
0 commit comments