From fcd7092ae1e871cb5c76844347814f307f4cb547 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Sun, 29 Mar 2020 03:16:23 +0100 Subject: Revert "Fix links for `AllocInit` methods" This reverts commit d241db2d4e620277ddb47dd26779982709f851d8. --- src/libcore/alloc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore/alloc') diff --git a/src/libcore/alloc/mod.rs b/src/libcore/alloc/mod.rs index d98d585c05d..e6364b1e01c 100644 --- a/src/libcore/alloc/mod.rs +++ b/src/libcore/alloc/mod.rs @@ -52,7 +52,7 @@ impl AllocInit { /// /// * `memory.ptr` must be [valid] for writes of `memory.size` bytes. /// - /// [valid]: ../../ptr/index.html#safety + /// [valid]: ../ptr/index.html#safety #[inline] #[unstable(feature = "allocator_api", issue = "32838")] pub unsafe fn init(self, memory: MemoryBlock) { @@ -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]: ../ptr/index.html#safety #[inline] #[unstable(feature = "allocator_api", issue = "32838")] pub unsafe fn init_offset(self, memory: MemoryBlock, offset: usize) { -- cgit 1.4.1-3-g733a5