Skip to content

Commit d241db2

Browse files
committed
Fix links for AllocInit methods
1 parent 4309f6d commit d241db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/alloc/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl AllocInit {
5252
///
5353
/// * `memory.ptr` must be [valid] for writes of `memory.size` bytes.
5454
///
55-
/// [valid]: ../ptr/index.html#safety
55+
/// [valid]: ../../ptr/index.html#safety
5656
#[inline]
5757
#[unstable(feature = "allocator_api", issue = "32838")]
5858
pub unsafe fn init(self, memory: MemoryBlock) {
@@ -69,7 +69,7 @@ impl AllocInit {
6969
/// * `memory.ptr` must be [valid] for writes of `memory.size` bytes.
7070
/// * `offset` must be smaller than or equal to `memory.size`
7171
///
72-
/// [valid]: ../ptr/index.html#safety
72+
/// [valid]: ../../ptr/index.html#safety
7373
#[inline]
7474
#[unstable(feature = "allocator_api", issue = "32838")]
7575
pub unsafe fn init_offset(self, memory: MemoryBlock, offset: usize) {

0 commit comments

Comments
 (0)