summaryrefslogtreecommitdiffstats
path: root/tokio-timer/src
diff options
context:
space:
mode:
authorJulian Tescher <jatescher@gmail.com>2018-05-08 14:44:17 -0400
committerCarl Lerche <me@carllerche.com>2018-05-08 11:44:17 -0700
commit06b2c402227b4c0f64912e48966f2751dd872ccc (patch)
tree736fceef44b46484e93559bb5e7d0a06e623b3bc /tokio-timer/src
parent68b82f5721cbfa2076f53fa24961ee9273395b39 (diff)
Fix typos (#348)
Diffstat (limited to 'tokio-timer/src')
-rw-r--r--tokio-timer/src/timer/entry.rs4
-rw-r--r--tokio-timer/src/timer/mod.rs2
-rw-r--r--tokio-timer/src/timer/registration.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/tokio-timer/src/timer/entry.rs b/tokio-timer/src/timer/entry.rs
index 2dd6845a..3cea9fe6 100644
--- a/tokio-timer/src/timer/entry.rs
+++ b/tokio-timer/src/timer/entry.rs
@@ -44,7 +44,7 @@ pub(crate) struct Entry {
/// instant, this value is changed.
state: AtomicU64,
- /// When true, the entry is counted by `Inner` towards the max oustanding
+ /// When true, the entry is counted by `Inner` towards the max outstanding
/// timeouts. The drop fn uses this to know if it should decrement the
/// counter.
///
@@ -54,7 +54,7 @@ pub(crate) struct Entry {
/// improve the struct layout. To do this, we must always allocate the node.
counted: bool,
- /// True wheen the entry is queued in the "process" stack. This value
+ /// True when the entry is queued in the "process" stack. This value
/// is set before pushing the value and unset after popping the value.
queued: AtomicBool,
diff --git a/tokio-timer/src/timer/mod.rs b/tokio-timer/src/timer/mod.rs
index 89c5eb25..60b1f0f8 100644
--- a/tokio-timer/src/timer/mod.rs
+++ b/tokio-timer/src/timer/mod.rs
@@ -320,7 +320,7 @@ where T: Park,
break;
}
- // Prcess the slot, either moving it down a level or firing the
+ // Process the slot, either moving it down a level or firing the
// timeout if currently at the final (boss) level.
self.process_expiration(&expiration);
diff --git a/tokio-timer/src/timer/registration.rs b/tokio-timer/src/timer/registration.rs
index a89d0f67..8df21aba 100644
--- a/tokio-timer/src/timer/registration.rs
+++ b/tokio-timer/src/timer/registration.rs
@@ -40,7 +40,7 @@ impl Registration {
let when = inner.normalize_deadline(deadline);
if when <= inner.elapsed() {
- // The deadline has already elapsed, ther eis no point creating the
+ // The deadline has already elapsed, there is no point creating the
// structures.
return Registration {
entry: Arc::new(Entry::new_elapsed(handle)),