Skip to content

Commit 4c1332a

Browse files
Add missing links for CannotReallocInPlace type
1 parent db592f4 commit 4c1332a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libcore/alloc.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,12 @@ impl fmt::Display for AllocErr {
359359
}
360360
}
361361

362-
/// The `CannotReallocInPlace` error is used when `grow_in_place` or
363-
/// `shrink_in_place` were unable to reuse the given memory block for
362+
/// The `CannotReallocInPlace` error is used when [`grow_in_place`] or
363+
/// [`shrink_in_place`] were unable to reuse the given memory block for
364364
/// a requested layout.
365+
///
366+
/// [`grow_in_place`]: ./trait.Alloc.html#method.grow_in_place
367+
/// [`shrink_in_place`]: ./trait.Alloc.html#method.shrink_in_place
365368
#[unstable(feature = "allocator_api", issue = "32838")]
366369
#[derive(Clone, PartialEq, Eq, Debug)]
367370
pub struct CannotReallocInPlace;

0 commit comments

Comments
 (0)