about summary refs log tree commit diff
path: root/src/libcore/alloc
diff options
context:
space:
mode:
authorTim Diekmann <tim.diekmann@3dvision.de>2020-03-29 03:16:23 +0100
committerTim Diekmann <tim.diekmann@3dvision.de>2020-03-29 03:16:23 +0100
commitd241db2d4e620277ddb47dd26779982709f851d8 (patch)
tree491f6b08f7b92df9492669099683e5fa22a6015f /src/libcore/alloc
parent4309f6d9a165d892c1174582f02a067b98bca2bd (diff)
downloadrust-d241db2d4e620277ddb47dd26779982709f851d8.tar.gz
rust-d241db2d4e620277ddb47dd26779982709f851d8.zip
Fix links for `AllocInit` methods
Diffstat (limited to 'src/libcore/alloc')
-rw-r--r--src/libcore/alloc/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/alloc/mod.rs b/src/libcore/alloc/mod.rs
index e6364b1e01c..d98d585c05d 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) {