Skip to content

Commit

Permalink
Fix links for AllocInit methods
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Mar 29, 2020
1 parent fcd7092 commit c49f280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/alloc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl AllocInit {
///
/// * `memory.ptr` must be [valid] for writes of `memory.size` bytes.
///
/// [valid]: ../ptr/index.html#safety
/// [valid]: ../../core/ptr/index.html#safety
#[inline]
#[unstable(feature = "allocator_api", issue = "32838")]
pub unsafe fn init(self, memory: MemoryBlock) {
Expand All @@ -69,7 +69,7 @@ impl AllocInit {
/// * `memory.ptr` must be [valid] for writes of `memory.size` bytes.
/// * `offset` must be smaller than or equal to `memory.size`
///
/// [valid]: ../ptr/index.html#safety
/// [valid]: ../../core/ptr/index.html#safety
#[inline]
#[unstable(feature = "allocator_api", issue = "32838")]
pub unsafe fn init_offset(self, memory: MemoryBlock, offset: usize) {
Expand Down

0 comments on commit c49f280

Please sign in to comment.