Skip to content

Commit 450b3b6

Browse files
authored
chore(lib): fix some typos in comments (#3739)
Signed-off-by: friendlyping <friendlyping@icloud.com>
1 parent ad89b53 commit 450b3b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/client/dispatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub(crate) type Promise<T> = oneshot::Receiver<Result<T, crate::Error>>;
1818

1919
/// An error when calling `try_send_request`.
2020
///
21-
/// There is a possibility of an error occuring on a connection in-between the
21+
/// There is a possibility of an error occurring on a connection in-between the
2222
/// time that a request is queued and when it is actually written to the IO
2323
/// transport. If that happens, it is safe to return the request back to the
2424
/// caller, as it was never fully sent.

src/ext/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl OriginalHeaderOrder {
192192
}
193193

194194
// No doc test is run here because `RUSTFLAGS='--cfg hyper_unstable_ffi'`
195-
// is needed to compile. Once ffi is stablized `no_run` should be removed
195+
// is needed to compile. Once ffi is stabilized `no_run` should be removed
196196
// here.
197197
/// This returns an iterator that provides header names and indexes
198198
/// in the original order received.

src/proto/h2/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ where
722722
}
723723

724724
Poll::Pending => match ready!(Pin::new(&mut self.conn_eof).poll(cx)) {
725-
// As of Rust 1.82, this pattern is no longer needed, and emits a waring.
725+
// As of Rust 1.82, this pattern is no longer needed, and emits a warning.
726726
// But we cannot remove it as long as MSRV is less than that.
727727
#[allow(unused)]
728728
Ok(never) => match never {},

0 commit comments

Comments
 (0)