From 7278a42dd56765775fe1b1b0b7da5c82e2d894f0 Mon Sep 17 00:00:00 2001 From: cherryblossom000 <31467609+cherryblossom000@users.noreply.github.com> Date: Thu, 21 Jan 2021 19:13:22 +1100 Subject: [PATCH] Fix alloc link in exotic-sizes for local docs This changes `https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html#tymethod.alloc` to `../std/alloc/trait.GlobalAlloc.html#tymethod.alloc` so that it uses the local docs installation if the page is viewed with the local docs. --- src/exotic-sizes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exotic-sizes.md b/src/exotic-sizes.md index 7bb1112..fa997c0 100644 --- a/src/exotic-sizes.md +++ b/src/exotic-sizes.md @@ -118,7 +118,7 @@ references, must be non-null and suitably aligned. Dereferencing a null or unaligned pointer to a ZST is [undefined behavior][ub], just like for any other type. -[alloc]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html#tymethod.alloc +[alloc]: ../std/alloc/trait.GlobalAlloc.html#tymethod.alloc [ub]: what-unsafe-does.html