diff options
| author | Alexis Bourget <alexis.bourget@gmail.com> | 2020-12-01 23:09:03 +0100 |
|---|---|---|
| committer | Alexis Bourget <alexis.bourget@gmail.com> | 2020-12-02 00:41:53 +0100 |
| commit | 4eb76fcc8eb37e69962d27d990ba693fa612c17a (patch) | |
| tree | edfa66e7dcb69bc44f83b177ee71f0bed2c4d819 /library/core/src/task | |
| parent | c4926d01ada661d4fbffb0e5b1708ae5463d47b3 (diff) | |
| download | rust-4eb76fcc8eb37e69962d27d990ba693fa612c17a.tar.gz rust-4eb76fcc8eb37e69962d27d990ba693fa612c17a.zip | |
Use more std:: instead of core:: in docs for consistency, add more intra doc links
Diffstat (limited to 'library/core/src/task')
| -rw-r--r-- | library/core/src/task/ready.rs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/library/core/src/task/ready.rs b/library/core/src/task/ready.rs index e221aaf3fd6..cbf69900015 100644 --- a/library/core/src/task/ready.rs +++ b/library/core/src/task/ready.rs @@ -1,15 +1,18 @@ -/// Extracts the successful type of a `Poll<T>`. +/// Extracts the successful type of a [`Poll<T>`]. /// -/// This macro bakes in propagation of `Pending` signals by returning early. +/// This macro bakes in propagation of [`Pending`] signals by returning early. +/// +/// [`Poll<T>`]: crate::task::Poll +/// [`Pending`]: crate::task::Poll::Pending /// /// # Examples /// /// ``` /// #![feature(ready_macro)] /// -/// use core::task::{ready, Context, Poll}; -/// use core::future::{self, Future}; -/// use core::pin::Pin; +/// use std::task::{ready, Context, Poll}; +/// use std::future::{self, Future}; +/// use std::pin::Pin; /// /// pub fn do_poll(cx: &mut Context<'_>) -> Poll<()> { /// let mut fut = future::ready(42); @@ -28,9 +31,9 @@ /// ``` /// # #![feature(ready_macro)] /// # -/// # use core::task::{Context, Poll}; -/// # use core::future::{self, Future}; -/// # use core::pin::Pin; +/// # use std::task::{Context, Poll}; +/// # use std::future::{self, Future}; +/// # use std::pin::Pin; /// # /// # pub fn do_poll(cx: &mut Context<'_>) -> Poll<()> { /// # let mut fut = future::ready(42); |
