File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use std::time::{Instant, Duration};
15
15
16
16
/// Allows a `Future` or `Stream` to execute for a limited amount of time.
17
17
///
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
19
19
/// `Timeout` returns the completed value. Otherwise, `Timeout` returns an
20
20
/// [`Error`].
21
21
///
@@ -43,7 +43,7 @@ use std::time::{Instant, Duration};
43
43
/// # tx.unbounded_send(()).unwrap();
44
44
/// # drop(tx);
45
45
/// let process = rx.for_each(|item| {
46
- /// // do something with `iteem `
46
+ /// // do something with `item `
47
47
/// # drop(item);
48
48
/// # Ok(())
49
49
/// });
@@ -55,7 +55,7 @@ use std::time::{Instant, Duration};
55
55
/// # Cancelation
56
56
///
57
57
/// Cancelling a `Timeout` is done by dropping the value. No additional cleanup
58
- /// or otheer work is required.
58
+ /// or other work is required.
59
59
///
60
60
/// The original future or stream may be obtained by calling [`into_inner`]. This
61
61
/// consumes the `Timeout`.
Original file line number Diff line number Diff line change 75
75
}
76
76
77
77
/// Return the number of milliseconds that have elapsed since the timing
78
- /// wheele 's creation.
78
+ /// wheel 's creation.
79
79
pub fn elapsed ( & self ) -> u64 {
80
80
self . elapsed
81
81
}
You can’t perform that action at this time.
0 commit comments