Skip to content

Commit 798ce31

Browse files
authored
Merge pull request #1031 from kianmeng/fix-typos
Fix typos
2 parents c6b2128 + fc69db1 commit 798ce31

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ deprecated `sync::channel` types, and introduces the `tokio1` feature.
6161

6262
As part of our `1.8.0` release last month we introduced the new
6363
`async_std::channel` submodule and deprecated the unstable
64-
`async_std::sync::channel` types. You can read our full motiviation for this
64+
`async_std::sync::channel` types. You can read our full motivation for this
6565
change in the last patch notes. But the short version is that the old
6666
channels had some fundamental problems, and the `sync` submodule is a bit of
6767
a mess.

Diff for: docs/src/security/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Security
22

3-
Writing a highly perfomant async core library is a task involving some instances of unsafe code.
3+
Writing a highly performant async core library is a task involving some instances of unsafe code.
44

55
We take great care in vetting all unsafe code included in `async-std` and do follow generally accepted practices.
66

Diff for: docs/src/tutorial/clean_shutdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async fn broker_loop(mut events: Receiver<Event>) -> Result<()> {
245245
Notice what happens with all of the channels once we exit the accept loop:
246246

247247
1. First, we drop the main broker's sender.
248-
That way when the readers are done, there's no sender for the broker's channel, and the chanel closes.
248+
That way when the readers are done, there's no sender for the broker's channel, and the channel closes.
249249
2. Next, the broker exits `while let Some(event) = events.next().await` loop.
250250
3. It's crucial that, at this stage, we drop the `peers` map.
251251
This drops writer's senders.

Diff for: src/fs/open_options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl OpenOptions {
136136
/// Configures the option for append mode.
137137
///
138138
/// When set to `true`, this option means the file will be writable after opening and the file
139-
/// cursor will be moved to the end of file before every write operaiton.
139+
/// cursor will be moved to the end of file before every write operation.
140140
///
141141
/// # Examples
142142
///

Diff for: src/io/write/write_fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl<T: Write + Unpin + ?Sized> Future for WriteFmtFuture<'_, T> {
1818
type Output = io::Result<()>;
1919

2020
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
21-
// Process the interal Result the first time we run.
21+
// Process the internal Result the first time we run.
2222
if self.buffer.is_none() {
2323
match self.res.take().unwrap() {
2424
Err(err) => return Poll::Ready(Err(err)),

Diff for: src/stream/stream/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ pub trait StreamExt: Stream {
14851485
the stream and ignore elements until it returns `false`.
14861486
14871487
After `false` is returned, `SkipWhile`'s job is over and all further
1488-
elements in the strem are yielded.
1488+
elements in the stream are yielded.
14891489
14901490
## Examples
14911491

Diff for: src/sync/condvar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl Condvar {
135135
}
136136
}
137137

138-
/// Blocks the current taks until this condition variable receives a notification and the
138+
/// Blocks the current task until this condition variable receives a notification and the
139139
/// required condition is met. Spurious wakeups are ignored and this function will only
140140
/// return once the condition has been met.
141141
///

0 commit comments

Comments
 (0)