Skip to content

Commit a815184

Browse files
authored
Rollup merge of #76840 - poliorcetics:intra-doc-core-sync-and-future, r=jyn514
Move to intra doc links in core/src/future Helps with #75080. @rustbot modify labels: T-doc A-intra-doc-links r? @jyn514
2 parents bfa1904 + 4c92b3d commit a815184

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

library/core/src/future/pending.rs

+1-3
Original file line numberDiff line numberDiff 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"]
1614
pub struct Pending<T> {

library/core/src/future/poll_fn.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ where
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")]
4240
pub struct PollFn<F> {

library/core/src/future/ready.rs

+1-3
Original file line numberDiff line numberDiff 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"]

0 commit comments

Comments
 (0)