Skip to content

Commit

Permalink
time: fix a typo in timeout docs (#5538)
Browse files Browse the repository at this point in the history
Replace instances of "immediatelly" with "immediately".
  • Loading branch information
andrewhalle committed Mar 11, 2023
1 parent 2b7b1a0 commit 8eb94a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tokio/src/time/timeout.rs
Expand Up @@ -28,8 +28,8 @@ 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 the future returned from
/// this function is guaranteed to complete immediatelly with an [`Ok`] variant
/// If the provided future completes immediately, then the future returned from
/// this function is guaranteed to complete immediately with an [`Ok`] variant
/// no matter the provided duration.
///
/// [`Ok`]: std::result::Result::Ok
Expand Down Expand Up @@ -105,8 +105,8 @@ 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 the future returned from
/// this function is guaranteed to complete immediatelly with an [`Ok`] variant
/// If the provided future completes immediately, then the future returned from
/// this function is guaranteed to complete immediately with an [`Ok`] variant
/// no matter the provided deadline.
///
/// [`Ok`]: std::result::Result::Ok
Expand Down

0 comments on commit 8eb94a3

Please sign in to comment.