From 69d90ac7eea2c1b0945fd01d02fa4ec4dfe736da Mon Sep 17 00:00:00 2001 From: Jason Davies Date: Tue, 28 Aug 2018 19:00:42 +0100 Subject: [PATCH] Fix a few typos in timer docs. (#569) --- tokio-timer/src/timeout.rs | 6 +++--- tokio-timer/src/wheel/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tokio-timer/src/timeout.rs b/tokio-timer/src/timeout.rs index 5e44969cc..8d31ea531 100644 --- a/tokio-timer/src/timeout.rs +++ b/tokio-timer/src/timeout.rs @@ -15,7 +15,7 @@ use std::time::{Instant, Duration}; /// Allows a `Future` or `Stream` to execute for a limited amount of time. /// -/// If thee future or stream completes before the timeout has expired, then +/// If the future or stream completes before the timeout has expired, then /// `Timeout` returns the completed value. Otherwise, `Timeout` returns an /// [`Error`]. /// @@ -43,7 +43,7 @@ use std::time::{Instant, Duration}; /// # tx.unbounded_send(()).unwrap(); /// # drop(tx); /// let process = rx.for_each(|item| { -/// // do something with `iteem` +/// // do something with `item` /// # drop(item); /// # Ok(()) /// }); @@ -55,7 +55,7 @@ use std::time::{Instant, Duration}; /// # Cancelation /// /// Cancelling a `Timeout` is done by dropping the value. No additional cleanup -/// or otheer work is required. +/// or other work is required. /// /// The original future or stream may be obtained by calling [`into_inner`]. This /// consumes the `Timeout`. diff --git a/tokio-timer/src/wheel/mod.rs b/tokio-timer/src/wheel/mod.rs index ed7dba8aa..abd79b436 100644 --- a/tokio-timer/src/wheel/mod.rs +++ b/tokio-timer/src/wheel/mod.rs @@ -75,7 +75,7 @@ where } /// Return the number of milliseconds that have elapsed since the timing - /// wheele's creation. + /// wheel's creation. pub fn elapsed(&self) -> u64 { self.elapsed }