Skip to content

Commit 69d90ac

Browse files
jasondaviescarllerche
authored andcommitted
Fix a few typos in timer docs. (#569)
1 parent d16032c commit 69d90ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tokio-timer/src/timeout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::time::{Instant, Duration};
1515

1616
/// Allows a `Future` or `Stream` to execute for a limited amount of time.
1717
///
18-
/// If thee future or stream completes before the timeout has expired, then
18+
/// If the future or stream completes before the timeout has expired, then
1919
/// `Timeout` returns the completed value. Otherwise, `Timeout` returns an
2020
/// [`Error`].
2121
///
@@ -43,7 +43,7 @@ use std::time::{Instant, Duration};
4343
/// # tx.unbounded_send(()).unwrap();
4444
/// # drop(tx);
4545
/// let process = rx.for_each(|item| {
46-
/// // do something with `iteem`
46+
/// // do something with `item`
4747
/// # drop(item);
4848
/// # Ok(())
4949
/// });
@@ -55,7 +55,7 @@ use std::time::{Instant, Duration};
5555
/// # Cancelation
5656
///
5757
/// Cancelling a `Timeout` is done by dropping the value. No additional cleanup
58-
/// or otheer work is required.
58+
/// or other work is required.
5959
///
6060
/// The original future or stream may be obtained by calling [`into_inner`]. This
6161
/// consumes the `Timeout`.

tokio-timer/src/wheel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ where
7575
}
7676

7777
/// Return the number of milliseconds that have elapsed since the timing
78-
/// wheele's creation.
78+
/// wheel's creation.
7979
pub fn elapsed(&self) -> u64 {
8080
self.elapsed
8181
}

0 commit comments

Comments
 (0)