Skip to content

Commit c933d69

Browse files
committed
Use intra-doc links in core::future::future
1 parent 3d0c847 commit c933d69

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

library/core/src/future/future.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::task::{Context, Poll};
2323
/// When using a future, you generally won't call `poll` directly, but instead
2424
/// `.await` the value.
2525
///
26-
/// [`Waker`]: ../task/struct.Waker.html
26+
/// [`Waker`]: crate::task::Waker
2727
#[doc(spotlight)]
2828
#[must_use = "futures do nothing unless you `.await` or poll them"]
2929
#[stable(feature = "futures_api", since = "1.36.0")]
@@ -91,11 +91,10 @@ pub trait Future {
9191
/// (memory corruption, incorrect use of `unsafe` functions, or the like),
9292
/// regardless of the future's state.
9393
///
94-
/// [`Poll::Pending`]: ../task/enum.Poll.html#variant.Pending
95-
/// [`Poll::Ready(val)`]: ../task/enum.Poll.html#variant.Ready
96-
/// [`Context`]: ../task/struct.Context.html
97-
/// [`Waker`]: ../task/struct.Waker.html
98-
/// [`Waker::wake`]: ../task/struct.Waker.html#method.wake
94+
/// [`Poll::Pending`]: Poll::Pending
95+
/// [`Poll::Ready(val)`]: Poll::Ready
96+
/// [`Waker`]: crate::task::Waker
97+
/// [`Waker::wake`]: crate::task::Waker::wake
9998
#[lang = "poll"]
10099
#[stable(feature = "futures_api", since = "1.36.0")]
101100
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;

0 commit comments

Comments
 (0)