]> git.lizzy.rs Git - rust.git/commitdiff
Revert "Fix links for `AllocInit` methods"
authorTim Diekmann <tim.diekmann@3dvision.de>
Sun, 29 Mar 2020 02:16:23 +0000 (03:16 +0100)
committerTim Diekmann <tim.diekmann@3dvision.de>
Sun, 29 Mar 2020 09:57:25 +0000 (11:57 +0200)
This reverts commit d241db2d4e620277ddb47dd26779982709f851d8.

src/libcore/alloc/mod.rs

index d98d585c05de4a4201fe1e4b3458b104a1662f4f..e6364b1e01c21ba1bb30e1c951e46973a66a704a 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]: ../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]: ../ptr/index.html#safety
     #[inline]
     #[unstable(feature = "allocator_api", issue = "32838")]
     pub unsafe fn init_offset(self, memory: MemoryBlock, offset: usize) {