From 8eb94a33c078831a4e0680bf59e6ea6aefa5d970 Mon Sep 17 00:00:00 2001 From: Andrew Halle Date: Sat, 11 Mar 2023 01:40:19 -0800 Subject: [PATCH] time: fix a typo in timeout docs (#5538) Replace instances of "immediatelly" with "immediately". --- tokio/src/time/timeout.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tokio/src/time/timeout.rs b/tokio/src/time/timeout.rs index b6837360edc..52ab9891c69 100644 --- a/tokio/src/time/timeout.rs +++ b/tokio/src/time/timeout.rs @@ -28,8 +28,8 @@ use std::task::{self, Poll}; /// This function returns a future whose return type is [`Result`]``, 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 @@ -105,8 +105,8 @@ where /// This function returns a future whose return type is [`Result`]``, 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