Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
time: fix timeout documentation error
  • Loading branch information
zetanumbers committed Feb 27, 2023
commit b899f69180921c33bf5c153c91d22e3b28784d26
12 changes: 6 additions & 6 deletions tokio/src/time/timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ use std::task::{self, Poll};
/// This function returns a future whose return type is [`Result`]`<T,`[`Elapsed`]`>`, where `T` is the
/// return type of the provided future.
///
/// If the provided future completes immediatelly, then future returned from this
/// function is guaranteed to complete immediatelly with an [`Ok`] variant no
/// matter the provided duration.
/// If the provided future completes immediatelly, then the future returned from
/// this function is guaranteed to complete immediatelly with an [`Ok`] variant
/// no matter the provided duration.
///
/// [`Ok`]: std::result::Result::Ok
/// [`Result`]: std::result::Result
Expand Down Expand Up @@ -105,9 +105,9 @@ where
/// This function returns a future whose return type is [`Result`]`<T,`[`Elapsed`]`>`, where `T` is the
/// return type of the provided future.
///
/// If the provided future completes immediatelly, then future returned from this
/// function is guaranteed to complete immediatelly with an [`Ok`] variant no
/// matter the provided deadline.
/// If the provided future completes immediatelly, then the future returned from
/// this function is guaranteed to complete immediatelly with an [`Ok`] variant
/// no matter the provided deadline.
///
/// [`Ok`]: std::result::Result::Ok
/// [`Result`]: std::result::Result
Expand Down