Skip to content

Commit

Permalink
Rollup merge of #129539 - oconnor663:poll_link, r=tgross35
Browse files Browse the repository at this point in the history
link to Future::poll from the Poll docs

The most important thing about Poll is that Future::poll returns it, but previously the docs didn't emphasize this.
  • Loading branch information
matthiaskrgr authored Aug 26, 2024
2 parents 68aff29 + 3153b7d commit b1c9064
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/src/task/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use crate::ops::{self, ControlFlow};

/// Indicates whether a value is available or if the current task has been
/// scheduled to receive a wakeup instead.
///
/// This is returned by [`Future::poll`](core::future::Future::poll).
#[must_use = "this `Poll` may be a `Pending` variant, which should be handled"]
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[lang = "Poll"]
Expand Down

0 comments on commit b1c9064

Please sign in to comment.