about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-06-01 09:18:25 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-06-11 13:48:57 -0700
commit7f0d54d98842c786ab7a140c17c3ea32aea6aead (patch)
tree0233adb2ce713c962242732e729d537c0a7c756d /src/liballoc
parent9dcb64f34638e8f72fa0ff54b39dfd071d0f8f86 (diff)
downloadrust-7f0d54d98842c786ab7a140c17c3ea32aea6aead.tar.gz
rust-7f0d54d98842c786ab7a140c17c3ea32aea6aead.zip
More alloc docs tweaks
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/alloc.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/liballoc/alloc.rs b/src/liballoc/alloc.rs
index fef668d2365..04c8063ffeb 100644
--- a/src/liballoc/alloc.rs
+++ b/src/liballoc/alloc.rs
@@ -184,8 +184,10 @@ pub(crate) unsafe fn box_free<T: ?Sized>(ptr: Unique<T>) {
 ///
 /// The default behavior of this function is to print a message to standard error
 /// and abort the process.
-/// It can be replaced with [`std::alloc::set_oom_hook`]
-/// and [`std::alloc::take_oom_hook`].
+/// It can be replaced with [`set_oom_hook`] and [`take_oom_hook`].
+///
+/// [`set_oom_hook`]: ../../std/alloc/fn.set_oom_hook.html
+/// [`take_oom_hook`]: ../../std/alloc/fn.take_oom_hook.html
 #[stable(feature = "global_alloc", since = "1.28.0")]
 #[rustc_allocator_nounwind]
 pub fn oom(layout: Layout) -> ! {