Skip to content

Commit 82c5baa

Browse files
mathstuftobz
authored andcommitted
Spelling fixes (#571)
* docs: fix spelling and whitespace errors
1 parent 7dc6404 commit 82c5baa

File tree

28 files changed

+46
-46
lines changed

28 files changed

+46
-46
lines changed

ci/tsan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ race:crossbeam_epoch
2121
race:crossbeam_deque*push
2222
race:crossbeam_deque*steal
2323

24-
# This filters out expected data race in the treiber stack implementations.
24+
# This filters out expected data race in the Treiber stack implementations.
2525
# Treiber stacks are inherently racy. The pop operation will attempt to access
2626
# the "next" pointer on the node it is attempting to pop. However, at this
2727
# point it has not gained ownership of the node and another thread might beat

examples/echo-udp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! An UDP echo server that just sends back everything that it receives.
22
//!
3-
//! If you're on unix you can test this out by in one terminal executing:
3+
//! If you're on Unix you can test this out by in one terminal executing:
44
//!
55
//! cargo run --example echo-udp
66
//!

src/runtime/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ impl Runtime {
345345
/// complete, and yielding its resolved result. Any tasks or timers which
346346
/// the future spawns internally will be executed on the runtime.
347347
///
348-
/// This method should not be called from an asynchrounous context.
348+
/// This method should not be called from an asynchronous context.
349349
///
350350
/// # Panics
351351
///
@@ -370,7 +370,7 @@ impl Runtime {
370370
/// its resolved result. Any tasks or timers which the future spawns
371371
/// internally will be executed on the runtime and waited for completion.
372372
///
373-
/// This method should not be called from an asynchrounous context.
373+
/// This method should not be called from an asynchronous context.
374374
///
375375
/// # Panics
376376
///

src/timer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
//! is initialized with a `Duration` and repeatedly yields each time the
1111
//! duration elapses.
1212
//!
13-
//! * [`Timeout`][Timeeout]: Wraps a future or stream, setting an upper bound to the
13+
//! * [`Timeout`][Timeout]: Wraps a future or stream, setting an upper bound to the
1414
//! amount of time it is allowed to execute. If the future or stream does not
15-
//! completee in time, then it is canceled and an error is returned.
15+
//! complete in time, then it is canceled and an error is returned.
1616
//!
1717
//! * [`DelayQueue`]: A queue where items are returned once the requested delay
1818
//! has expired.

tokio-current-thread/src/scheduler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct Inner<U> {
7373
head_readiness: AtomicPtr<Node<U>>,
7474
tail_readiness: UnsafeCell<*const Node<U>>,
7575

76-
// Used as part of the MPSC queue algorithm
76+
// Used as part of the mpsc queue algorithm
7777
stub: Arc<Node<U>>,
7878
}
7979

@@ -242,7 +242,7 @@ where U: Unpark,
242242
// being released, another thread notified it, which
243243
// resulted in it getting pushed into the mpsc channel.
244244
//
245-
// In this case, we just dec the ref count.
245+
// In this case, we just decrement the ref count.
246246
let node = ptr2arc(node);
247247
assert!((*node.next_all.get()).is_null());
248248
assert!((*node.prev_all.get()).is_null());

tokio-current-thread/tests/current_thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ fn turn_has_polled() {
428428
}
429429

430430
// Our own mock Park that is never really waiting and the only
431-
// thing it does is to send, on request, something (once) to a onshot
431+
// thing it does is to send, on request, something (once) to a oneshot
432432
// channel
433433
struct MyPark {
434434
sender: Option<oneshot::Sender<()>>,

tokio-executor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ executor, including:
2222
* The [`Executor`] trait describes the API for spawning a future onto an
2323
executor.
2424

25-
* [`enter`] marks that the the current thread is entering an execution
25+
* [`enter`] marks that the current thread is entering an execution
2626
context. This prevents a second executor from accidentally starting from
2727
within the context of one that is already running.
2828

tokio-executor/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! * The [`Executor`] trait describes the API for spawning a future onto an
2121
//! executor.
2222
//!
23-
//! * [`enter`] marks that the the current thread is entering an execution
23+
//! * [`enter`] marks that the current thread is entering an execution
2424
//! context. This prevents a second executor from accidentally starting from
2525
//! within the context of one that is already running.
2626
//!
@@ -114,7 +114,7 @@ pub trait Executor {
114114
///
115115
/// # Panics
116116
///
117-
/// Implementors are encouraged to avoid panics. However, a panic is
117+
/// Implementers are encouraged to avoid panics. However, a panic is
118118
/// permitted and the caller should check the implementation specific
119119
/// documentation for more details on possible panics.
120120
///
@@ -148,7 +148,7 @@ pub trait Executor {
148148
///
149149
/// # Panics
150150
///
151-
/// This function must not panic. Implementors must ensure that panics do
151+
/// This function must not panic. Implementers must ensure that panics do
152152
/// not happen.
153153
///
154154
/// # Examples

tokio-io/src/_tokio_codec/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// For now, we need to keep the implmentation of Encoder in tokio_io.
1+
// For now, we need to keep the implementation of Encoder in tokio_io.
22

33
pub use codec::Decoder;

tokio-io/src/_tokio_codec/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// For now, we need to keep the implmentation of Encoder in tokio_io.
1+
// For now, we need to keep the implementation of Encoder in tokio_io.
22

33
pub use codec::Encoder;

0 commit comments

Comments
 (0)