about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2019-08-02 01:39:25 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2019-08-02 01:39:25 +0700
commit325c6a56c274678f294bfa25ee43e1eef48f46a2 (patch)
treebcd217fef9a6dcbd422a43b00fc92726186918f8
parentae65848d9e088b40f0f2a45c60b2182e6ee65138 (diff)
downloadrust-325c6a56c274678f294bfa25ee43e1eef48f46a2.tar.gz
rust-325c6a56c274678f294bfa25ee43e1eef48f46a2.zip
Futures: Add link to Waker in trait doc.
-rw-r--r--src/libcore/future/future.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs
index 8bd1601a362..593c01060ca 100644
--- a/src/libcore/future/future.rs
+++ b/src/libcore/future/future.rs
@@ -17,11 +17,13 @@ use crate::task::{Context, Poll};
 /// final value. This method does not block if the value is not ready. Instead,
 /// the current task is scheduled to be woken up when it's possible to make
 /// further progress by `poll`ing again. The `context` passed to the `poll`
-/// method can provide a `Waker`, which is a handle for waking up the current
+/// method can provide a [`Waker`], which is a handle for waking up the current
 /// task.
 ///
 /// When using a future, you generally won't call `poll` directly, but instead
 /// `.await` the value.
+///
+/// [`Waker`]: ../task/struct.Waker.html
 #[doc(spotlight)]
 #[must_use = "futures do nothing unless you `.await` or poll them"]
 #[stable(feature = "futures_api", since = "1.36.0")]