From 450b3b6873b8f2f93e6ec044a589c6cc1c7c7568 Mon Sep 17 00:00:00 2001 From: friendlyping Date: Sat, 17 Aug 2024 02:49:23 +0800 Subject: [PATCH] chore(lib): fix some typos in comments (#3739) Signed-off-by: friendlyping --- src/client/dispatch.rs | 2 +- src/ext/mod.rs | 2 +- src/proto/h2/client.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index b52da60e72..4ae41c509d 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -18,7 +18,7 @@ pub(crate) type Promise = oneshot::Receiver>; /// An error when calling `try_send_request`. /// -/// There is a possibility of an error occuring on a connection in-between the +/// There is a possibility of an error occurring on a connection in-between the /// time that a request is queued and when it is actually written to the IO /// transport. If that happens, it is safe to return the request back to the /// caller, as it was never fully sent. diff --git a/src/ext/mod.rs b/src/ext/mod.rs index 7728f705de..1235202291 100644 --- a/src/ext/mod.rs +++ b/src/ext/mod.rs @@ -192,7 +192,7 @@ impl OriginalHeaderOrder { } // No doc test is run here because `RUSTFLAGS='--cfg hyper_unstable_ffi'` - // is needed to compile. Once ffi is stablized `no_run` should be removed + // is needed to compile. Once ffi is stabilized `no_run` should be removed // here. /// This returns an iterator that provides header names and indexes /// in the original order received. diff --git a/src/proto/h2/client.rs b/src/proto/h2/client.rs index 61b132b0b3..d2430cbf99 100644 --- a/src/proto/h2/client.rs +++ b/src/proto/h2/client.rs @@ -722,7 +722,7 @@ where } Poll::Pending => match ready!(Pin::new(&mut self.conn_eof).poll(cx)) { - // As of Rust 1.82, this pattern is no longer needed, and emits a waring. + // As of Rust 1.82, this pattern is no longer needed, and emits a warning. // But we cannot remove it as long as MSRV is less than that. #[allow(unused)] Ok(never) => match never {},