Skip to content

Commit 325c6a5

Browse files
Futures: Add link to Waker in trait doc.
1 parent ae65848 commit 325c6a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/future/future.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ use crate::task::{Context, Poll};
1717
/// final value. This method does not block if the value is not ready. Instead,
1818
/// the current task is scheduled to be woken up when it's possible to make
1919
/// further progress by `poll`ing again. The `context` passed to the `poll`
20-
/// method can provide a `Waker`, which is a handle for waking up the current
20+
/// method can provide a [`Waker`], which is a handle for waking up the current
2121
/// task.
2222
///
2323
/// When using a future, you generally won't call `poll` directly, but instead
2424
/// `.await` the value.
25+
///
26+
/// [`Waker`]: ../task/struct.Waker.html
2527
#[doc(spotlight)]
2628
#[must_use = "futures do nothing unless you `.await` or poll them"]
2729
#[stable(feature = "futures_api", since = "1.36.0")]

0 commit comments

Comments
 (0)