Skip to content

Commit 2903b1c

Browse files
committed
docs(common,proto): fix typos
1 parent f8e2a83 commit 2903b1c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/common/io/rewind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ where
6060
// TODO: There should be a way to do following two lines cleaner...
6161
buf.put_slice(&prefix[..copy_len]);
6262
prefix.advance(copy_len);
63-
// Put back whats left
63+
// Put back what's left
6464
if !prefix.is_empty() {
6565
self.pre = Some(prefix);
6666
}

src/proto/h1/conn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ where
586586
}
587587
}
588588

589-
// Fix keep-alives when Connection: keep-alive header is not present
589+
// Fix keep-alive when Connection: keep-alive header is not present
590590
fn fix_keep_alive(&mut self, head: &mut MessageHead<T::Outgoing>) {
591591
let outgoing_is_keep_alive = head
592592
.headers

src/proto/h1/role.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ impl Http1Transaction for Client {
949949
#[cfg(feature = "ffi")]
950950
let reason = {
951951
let reason = res.reason.unwrap();
952-
// Only save the reason phrase if it isnt the canonical reason
952+
// Only save the reason phrase if it isn't the canonical reason
953953
if Some(reason) != status.canonical_reason() {
954954
Some(Bytes::copy_from_slice(reason.as_bytes()))
955955
} else {

src/proto/h2/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ where
143143
#[cfg(feature = "runtime")]
144144
keep_alive_timeout: config.keep_alive_timeout,
145145
// If keep-alive is enabled for servers, always enabled while
146-
// idle, so it can more aggresively close dead connections.
146+
// idle, so it can more aggressively close dead connections.
147147
#[cfg(feature = "runtime")]
148148
keep_alive_while_idle: true,
149149
};
@@ -264,7 +264,7 @@ where
264264
let reason = err.h2_reason();
265265
if reason == Reason::NO_ERROR {
266266
// NO_ERROR is only used for graceful shutdowns...
267-
trace!("interpretting NO_ERROR user error as graceful_shutdown");
267+
trace!("interpreting NO_ERROR user error as graceful_shutdown");
268268
self.conn.graceful_shutdown();
269269
} else {
270270
trace!("abruptly shutting down with {:?}", reason);

0 commit comments

Comments
 (0)