|
1 | | -/// Extracts the successful type of a `Poll<T>`. |
| 1 | +/// Extracts the successful type of a [`Poll<T>`]. |
2 | 2 | /// |
3 | | -/// This macro bakes in propagation of `Pending` signals by returning early. |
| 3 | +/// This macro bakes in propagation of [`Pending`] signals by returning early. |
| 4 | +/// |
| 5 | +/// [`Poll<T>`]: crate::task::Poll |
| 6 | +/// [`Pending`]: crate::task::Poll::Pending |
4 | 7 | /// |
5 | 8 | /// # Examples |
6 | 9 | /// |
7 | 10 | /// ``` |
8 | 11 | /// #![feature(ready_macro)] |
9 | 12 | /// |
10 | | -/// use core::task::{ready, Context, Poll}; |
11 | | -/// use core::future::{self, Future}; |
12 | | -/// use core::pin::Pin; |
| 13 | +/// use std::task::{ready, Context, Poll}; |
| 14 | +/// use std::future::{self, Future}; |
| 15 | +/// use std::pin::Pin; |
13 | 16 | /// |
14 | 17 | /// pub fn do_poll(cx: &mut Context<'_>) -> Poll<()> { |
15 | 18 | /// let mut fut = future::ready(42); |
|
28 | 31 | /// ``` |
29 | 32 | /// # #![feature(ready_macro)] |
30 | 33 | /// # |
31 | | -/// # use core::task::{Context, Poll}; |
32 | | -/// # use core::future::{self, Future}; |
33 | | -/// # use core::pin::Pin; |
| 34 | +/// # use std::task::{Context, Poll}; |
| 35 | +/// # use std::future::{self, Future}; |
| 36 | +/// # use std::pin::Pin; |
34 | 37 | /// # |
35 | 38 | /// # pub fn do_poll(cx: &mut Context<'_>) -> Poll<()> { |
36 | 39 | /// # let mut fut = future::ready(42); |
|
0 commit comments