diff options
| author | Ralf Jung <post@ralfj.de> | 2020-09-20 12:08:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-20 12:08:31 +0200 |
| commit | a8151840ef892e1ec476a135d37daafca7ef9961 (patch) | |
| tree | 795802a316cd66196271e51c6bd91c4136890b8d | |
| parent | bfa1904765407e8064beb81c75b4bba039437043 (diff) | |
| parent | 4c92b3dc7d189bdff8f7e78be293d03e43466621 (diff) | |
| download | rust-a8151840ef892e1ec476a135d37daafca7ef9961.tar.gz rust-a8151840ef892e1ec476a135d37daafca7ef9961.zip | |
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
| -rw-r--r-- | library/core/src/future/pending.rs | 4 | ||||
| -rw-r--r-- | library/core/src/future/poll_fn.rs | 4 | ||||
| -rw-r--r-- | library/core/src/future/ready.rs | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/library/core/src/future/pending.rs b/library/core/src/future/pending.rs index 4fec219ede2..ab162638a1c 100644 --- a/library/core/src/future/pending.rs +++ b/library/core/src/future/pending.rs @@ -7,10 +7,8 @@ use crate::task::{Context, Poll}; /// Creates a future which never resolves, representing a computation that never /// finishes. /// -/// This `struct` is created by the [`pending`] function. See its +/// This `struct` is created by [`pending()`]. See its /// documentation for more. -/// -/// [`pending`]: fn.pending.html #[stable(feature = "future_readiness_fns", since = "1.48.0")] #[must_use = "futures do nothing unless you `.await` or poll them"] pub struct Pending<T> { diff --git a/library/core/src/future/poll_fn.rs b/library/core/src/future/poll_fn.rs index 9ab3bfcea1c..f302cda09e7 100644 --- a/library/core/src/future/poll_fn.rs +++ b/library/core/src/future/poll_fn.rs @@ -33,10 +33,8 @@ where /// A Future that wraps a function returning `Poll`. /// -/// This `struct` is created by the [`poll_fn`] function. See its +/// This `struct` is created by [`poll_fn()`]. See its /// documentation for more. -/// -/// [`poll_fn`]: fn.poll_fn.html #[must_use = "futures do nothing unless you `.await` or poll them"] #[unstable(feature = "future_poll_fn", issue = "72302")] pub struct PollFn<F> { diff --git a/library/core/src/future/ready.rs b/library/core/src/future/ready.rs index fcfd8779b0a..e98f5c570bf 100644 --- a/library/core/src/future/ready.rs +++ b/library/core/src/future/ready.rs @@ -4,10 +4,8 @@ use crate::task::{Context, Poll}; /// Creates a future that is immediately ready with a value. /// -/// This `struct` is created by the [`ready`] function. See its +/// This `struct` is created by [`ready()`]. See its /// documentation for more. -/// -/// [`ready`]: fn.ready.html #[stable(feature = "future_readiness_fns", since = "1.48.0")] #[derive(Debug, Clone)] #[must_use = "futures do nothing unless you `.await` or poll them"] |
