From fc69db17032be235d9068bc4d8ae05eacf984752 Mon Sep 17 00:00:00 2001
From: Kian-Meng Ang <kianmeng@cpan.org>
Date: Thu, 30 Jun 2022 20:46:04 +0800
Subject: [PATCH] Fix typos

---
 CHANGELOG.md                        | 2 +-
 docs/src/security/index.md          | 2 +-
 docs/src/tutorial/clean_shutdown.md | 2 +-
 src/fs/open_options.rs              | 2 +-
 src/io/write/write_fmt.rs           | 2 +-
 src/stream/stream/mod.rs            | 2 +-
 src/sync/condvar.rs                 | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 20d5bd7bb..b3b4d04b2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -61,7 +61,7 @@ deprecated `sync::channel` types, and introduces the `tokio1` feature.
 
 As part of our `1.8.0` release last month we introduced the new
 `async_std::channel` submodule and deprecated the unstable
-`async_std::sync::channel` types. You can read our full motiviation for this
+`async_std::sync::channel` types. You can read our full motivation for this
 change in the last patch notes. But the short version is that the old
 channels had some fundamental problems, and the `sync` submodule is a bit of
 a mess.
diff --git a/docs/src/security/index.md b/docs/src/security/index.md
index 5a94a5401..02fef4c0a 100644
--- a/docs/src/security/index.md
+++ b/docs/src/security/index.md
@@ -1,6 +1,6 @@
 # Security
 
-Writing a highly perfomant async core library is a task involving some instances of unsafe code.
+Writing a highly performant async core library is a task involving some instances of unsafe code.
 
 We take great care in vetting all unsafe code included in `async-std` and do follow generally accepted practices.
 
diff --git a/docs/src/tutorial/clean_shutdown.md b/docs/src/tutorial/clean_shutdown.md
index bd112c934..0937d7086 100644
--- a/docs/src/tutorial/clean_shutdown.md
+++ b/docs/src/tutorial/clean_shutdown.md
@@ -245,7 +245,7 @@ async fn broker_loop(mut events: Receiver<Event>) -> Result<()> {
 Notice what happens with all of the channels once we exit the accept loop:
 
 1. First, we drop the main broker's sender.
-   That way when the readers are done, there's no sender for the broker's channel, and the chanel closes.
+   That way when the readers are done, there's no sender for the broker's channel, and the channel closes.
 2. Next, the broker exits `while let Some(event) = events.next().await` loop.
 3. It's crucial that, at this stage, we drop the `peers` map.
    This drops writer's senders.
diff --git a/src/fs/open_options.rs b/src/fs/open_options.rs
index 91ad8cab5..18aa89eb3 100644
--- a/src/fs/open_options.rs
+++ b/src/fs/open_options.rs
@@ -136,7 +136,7 @@ impl OpenOptions {
     /// Configures the option for append mode.
     ///
     /// When set to `true`, this option means the file will be writable after opening and the file
-    /// cursor will be moved to the end of file before every write operaiton.
+    /// cursor will be moved to the end of file before every write operation.
     ///
     /// # Examples
     ///
diff --git a/src/io/write/write_fmt.rs b/src/io/write/write_fmt.rs
index 318b1c37f..a65e06a64 100644
--- a/src/io/write/write_fmt.rs
+++ b/src/io/write/write_fmt.rs
@@ -18,7 +18,7 @@ impl<T: Write + Unpin + ?Sized> Future for WriteFmtFuture<'_, T> {
     type Output = io::Result<()>;
 
     fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
-        // Process the interal Result the first time we run.
+        // Process the internal Result the first time we run.
         if self.buffer.is_none() {
             match self.res.take().unwrap() {
                 Err(err) => return Poll::Ready(Err(err)),
diff --git a/src/stream/stream/mod.rs b/src/stream/stream/mod.rs
index b0bf1f339..144194d24 100644
--- a/src/stream/stream/mod.rs
+++ b/src/stream/stream/mod.rs
@@ -1485,7 +1485,7 @@ pub trait StreamExt: Stream {
         the stream and ignore elements until it returns `false`.
 
         After `false` is returned, `SkipWhile`'s job is over and all further
-        elements in the strem are yielded.
+        elements in the stream are yielded.
 
         ## Examples
 
diff --git a/src/sync/condvar.rs b/src/sync/condvar.rs
index 1a208efdd..b7e81ed29 100644
--- a/src/sync/condvar.rs
+++ b/src/sync/condvar.rs
@@ -135,7 +135,7 @@ impl Condvar {
         }
     }
 
-    /// Blocks the current taks until this condition variable receives a notification and the
+    /// Blocks the current task until this condition variable receives a notification and the
     /// required condition is met. Spurious wakeups are ignored and this function will only
     /// return once the condition has been met.
     ///