about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorYoshua Wuyts <yoshuawuyts@gmail.com>2020-04-03 11:33:27 +0200
committerYoshua Wuyts <yoshuawuyts@gmail.com>2020-04-03 11:33:27 +0200
commit3d17993f9f751c34c0233f252a1887bc2934d137 (patch)
treea0de72b782f3deef43026730f2ede36bc1172af3 /src/liballoc
parent0f72ce1b271b40a5652049362e6aab5914f7b1d3 (diff)
downloadrust-3d17993f9f751c34c0233f252a1887bc2934d137.tar.gz
rust-3d17993f9f751c34c0233f252a1887bc2934d137.zip
Fix link in task::Wake docs
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/task.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/liballoc/task.rs b/src/liballoc/task.rs
index 981095302c7..a64d5d7a63b 100644
--- a/src/liballoc/task.rs
+++ b/src/liballoc/task.rs
@@ -12,10 +12,12 @@ use crate::sync::Arc;
 /// to the tasks that are executed on that executor.
 ///
 /// This trait is a memory-safe and ergonomic alternative to constructing a
-/// [`RawWaker`]. It supports the common executor design in which the data
-/// used to wake up a task is stored in an [`Arc`]. Some executors (especially
+/// [`RawWaker`]. It supports the common executor design in which the data used
+/// to wake up a task is stored in an [`Arc`][arc]. Some executors (especially
 /// those for embedded systems) cannot use this API, which is why [`RawWaker`]
 /// exists as an alternative for those systems.
+///
+/// [arc]: ../../std/sync/struct.Arc.html
 #[unstable(feature = "wake_trait", issue = "69912")]
 pub trait Wake {
     /// Wake this task.