]> git.lizzy.rs Git - rust.git/commitdiff
Fix links for `AllocInit` methods
authorTim Diekmann <tim.diekmann@3dvision.de>
Sun, 29 Mar 2020 10:00:35 +0000 (12:00 +0200)
committerTim Diekmann <tim.diekmann@3dvision.de>
Sun, 29 Mar 2020 10:00:51 +0000 (12:00 +0200)
src/libcore/alloc/mod.rs

index e6364b1e01c21ba1bb30e1c951e46973a66a704a..e8c4b68c64890d259c0de425407ce2c3abbd9591 100644 (file)
@@ -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) {
@@ -69,7 +69,7 @@ pub unsafe fn init(self, memory: MemoryBlock) {
     /// * `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) {