diff options
| author | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-29 12:00:35 +0200 |
|---|---|---|
| committer | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-03-29 12:00:51 +0200 |
| commit | c49f28005d8f636272f3103e6ecaa1affb7bf31b (patch) | |
| tree | d552ce19b2e23797750d67be6df011eff2177af9 | |
| parent | fcd7092ae1e871cb5c76844347814f307f4cb547 (diff) | |
| download | rust-c49f28005d8f636272f3103e6ecaa1affb7bf31b.tar.gz rust-c49f28005d8f636272f3103e6ecaa1affb7bf31b.zip | |
Fix links for `AllocInit` methods
| -rw-r--r-- | src/libcore/alloc/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/alloc/mod.rs b/src/libcore/alloc/mod.rs index e6364b1e01c..e8c4b68c648 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]: ../../core/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]: ../../core/ptr/index.html#safety #[inline] #[unstable(feature = "allocator_api", issue = "32838")] pub unsafe fn init_offset(self, memory: MemoryBlock, offset: usize) { |
