Skip to content

Commit 2b3f0f0

Browse files
authored
Merge pull request #616 from jtescher/fix-typos
Fix small typos
2 parents 2ca0d60 + 6eba226 commit 2b3f0f0

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This is a relatively large release of the `futures` crate, although much of it
4545
is from reworking internals rather than new APIs. The banner feature of this
4646
release is that the `futures::{task, executor}` modules are now available in
4747
`no_std` contexts! A large refactoring of the task system was performed in
48-
PR #436 to accomodate custom memory allocation schemes and otherwise remove
48+
PR #436 to accommodate custom memory allocation schemes and otherwise remove
4949
all dependencies on `std` for the task module. More details about this change
5050
can be found on the PR itself.
5151

futures-cpupool/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl CpuPool {
204204
{
205205
let (tx, rx) = channel();
206206
let keep_running_flag = Arc::new(AtomicBool::new(false));
207-
// AssertUnwindSafe is used here becuase `Send + 'static` is basically
207+
// AssertUnwindSafe is used here because `Send + 'static` is basically
208208
// an alias for an implementation of the `UnwindSafe` trait but we can't
209209
// express that in the standard library right now.
210210
let sender = MySender {

src/stream/futures_unordered.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use task_impl::{self, AtomicTask};
2828
/// Calling `poll` in this state will result in `Ok(Async::Ready(None))` to be
2929
/// returned. Futures are submitted to the set using `push`; however, the
3030
/// future will **not** be polled at this point. `FuturesUnordered` will only
31-
/// poll managged futures when `FuturesUnordered::poll` is called. As such, it
31+
/// poll managed futures when `FuturesUnordered::poll` is called. As such, it
3232
/// is important to call `poll` after pushing new futures.
3333
///
3434
/// If `FuturesUnordered::poll` returns `Ok(Async::Ready(None))` this means that
@@ -90,7 +90,7 @@ pub fn futures_unordered<I>(futures: I) -> FuturesUnordered<<I::Item as IntoFutu
9090
// `FuturesUnordered`. When a notification is received, the node is scheduled
9191
// for polling by being inserted into the concurrent linked list.
9292
//
93-
// Each node uses an `AtomicUisze` to track it's state. The node state is the
93+
// Each node uses an `AtomicUsize` to track it's state. The node state is the
9494
// reference count (the number of outstanding handles to the node) as well as a
9595
// flag tracking if the node is currently inserted in the atomic queue. When the
9696
// future is notified, it will only insert itself into the linked list if it

src/stream/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![deprecated(note = "implemention moved to `iter_ok` and `iter_result`")]
1+
#![deprecated(note = "implementation moved to `iter_ok` and `iter_result`")]
22
#![allow(deprecated)]
33

44
use Poll;

src/sync/mpsc/queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl<T> Queue<T> {
114114
/// return `Option<T>`. It is possible for this queue to be in an
115115
/// inconsistent state where many pushes have succeeded and completely
116116
/// finished, but pops cannot return `Some(t)`. This inconsistent state
117-
/// happens when a pusher is pre-empted at an inopportune moment.
117+
/// happens when a pusher is preempted at an inopportune moment.
118118
///
119119
/// This inconsistent state means that this queue does indeed have data, but
120120
/// it does not currently have access to it at this time.

src/sync/oneshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct Sender<T> {
3535
#[derive(Debug)]
3636
struct Inner<T> {
3737
/// Indicates whether this oneshot is complete yet. This is filled in both
38-
/// by `Sender::drop` and by `Receiver::drop`, and both sides iterperet it
38+
/// by `Sender::drop` and by `Receiver::drop`, and both sides interpret it
3939
/// appropriately.
4040
///
4141
/// For `Receiver`, if this is `true`, then it's guaranteed that `data` is

src/task_impl/std/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ impl fmt::Debug for UnparkEvent {
588588
/// A concurrent set which allows for the insertion of `usize` values.
589589
///
590590
/// `EventSet`s are used to communicate precise information about the event(s)
591-
/// that trigged a task notification. See `task::with_unpark_event` for details.
591+
/// that triggered a task notification. See `task::with_unpark_event` for details.
592592
pub trait EventSet: Send + Sync + 'static {
593593
/// Insert the given ID into the set
594594
fn insert(&self, id: usize);

src/task_impl/std/unpark_mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct UnparkMutex<D> {
1616
}
1717

1818
// `UnparkMutex<D>` functions in many ways like a `Mutex<D>`, except that on
19-
// acquisition failure, the current lockholder performs the desired work --
19+
// acquisition failure, the current lock holder performs the desired work --
2020
// re-polling.
2121
//
2222
// As such, these impls mirror those for `Mutex<D>`. In particular, a reference

tests/mpsc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ fn stress_close_receiver() {
358358
/// Tests that after `poll_ready` indicates capacity a channel can always send without waiting.
359359
#[test]
360360
fn stress_poll_ready() {
361-
// A task which checks channel capcity using poll_ready, and pushes items onto the channel when
361+
// A task which checks channel capacity using poll_ready, and pushes items onto the channel when
362362
// ready.
363363
struct SenderTask {
364364
sender: mpsc::Sender<u32>,

tests/sink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl<T> ManualFlush<T> {
232232

233233
#[test]
234234
// test that the `with` sink doesn't require the underlying sink to flush,
235-
// but doesn't claim to be flushed until the underlyig sink is
235+
// but doesn't claim to be flushed until the underlying sink is
236236
fn with_flush_propagate() {
237237
let mut sink = ManualFlush::new().with(|x| -> Result<Option<i32>, ()> { Ok(x) });
238238
assert_eq!(sink.start_send(Some(0)).unwrap(), AsyncSink::Ready);

tests/slot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ fn stress_shared_bounded_hard() {
171171
t.join().ok().unwrap();
172172
}
173173

174-
/// Stress test that receiver properly receivesl last message
174+
/// Stress test that receiver properly receives last message
175175
/// after sender dropped.
176176
#[test]
177177
fn stress_drop_sender() {

tests/support/local_executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl Core {
9595
/// "Turns" this event loop one tick.
9696
///
9797
/// This'll block the current thread until something happens, and once an
98-
/// event happens this will acto on that event.
98+
/// event happens this will act on that event.
9999
///
100100
/// # Return value
101101
///

0 commit comments

Comments
 (0)