This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,8 @@ use crate::task::{Context, Poll};
77/// Creates a future which never resolves, representing a computation that never
88/// finishes.
99///
10- /// This `struct` is created by the [`pending`] function . See its
10+ /// This `struct` is created by [`pending()`] . See its
1111/// documentation for more.
12- ///
13- /// [`pending`]: fn.pending.html
1412#[ stable( feature = "future_readiness_fns" , since = "1.48.0" ) ]
1513#[ must_use = "futures do nothing unless you `.await` or poll them" ]
1614pub struct Pending < T > {
Original file line number Diff line number Diff line change 3333
3434/// A Future that wraps a function returning `Poll`.
3535///
36- /// This `struct` is created by the [`poll_fn`] function . See its
36+ /// This `struct` is created by [`poll_fn()`] . See its
3737/// documentation for more.
38- ///
39- /// [`poll_fn`]: fn.poll_fn.html
4038#[ must_use = "futures do nothing unless you `.await` or poll them" ]
4139#[ unstable( feature = "future_poll_fn" , issue = "72302" ) ]
4240pub struct PollFn < F > {
Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ use crate::task::{Context, Poll};
44
55/// Creates a future that is immediately ready with a value.
66///
7- /// This `struct` is created by the [`ready`] function . See its
7+ /// This `struct` is created by [`ready()`] . See its
88/// documentation for more.
9- ///
10- /// [`ready`]: fn.ready.html
119#[ stable( feature = "future_readiness_fns" , since = "1.48.0" ) ]
1210#[ derive( Debug , Clone ) ]
1311#[ must_use = "futures do nothing unless you `.await` or poll them" ]
You can’t perform that action at this time.
0 commit comments