Skip to content

Commit c2b18b9

Browse files
authored
Fix typos (#145)
1 parent ab7353b commit c2b18b9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ asynchronous Rust patterns with Tokio.
176176
Commands or other features should only be added if doing so is useful to
177177
demonstrate a new pattern.
178178

179-
Contributions should come with extensive comments targetted to new Tokio users.
179+
Contributions should come with extensive comments targeted to new Tokio users.
180180

181181
Contributions that only focus on clarifying and improving comments are very
182182
welcome.

src/cmd/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl Set {
147147
frame.push_bulk(Bytes::from(self.key.into_bytes()));
148148
frame.push_bulk(self.value);
149149
if let Some(ms) = self.expire {
150-
// Expirations in Redis procotol can be specified in two ways
150+
// Expirations in Redis protocol can be specified in two ways
151151
// 1. SET key value EX seconds
152152
// 2. SET key value PX milliseconds
153153
// We the second option because it allows greater precision and

src/cmd/subscribe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async fn handle_command(
245245
Ok(())
246246
}
247247

248-
/// Creates the response to a subcribe request.
248+
/// Creates the response to a subscribe request.
249249
///
250250
/// All of these functions take the `channel_name` as a `String` instead of
251251
/// a `&str` since `Bytes::from` can reuse the allocation in the `String`, and

tests/buffered_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use tokio::net::TcpListener;
77
use tokio::task::JoinHandle;
88

99
/// A basic "hello world" style test. A server instance is started in a
10-
/// background task. A client instance is then established and used to intialize
10+
/// background task. A client instance is then established and used to initialize
1111
/// the buffer. Set and get commands are sent to the server. The response is
1212
/// then evaluated.
1313
#[tokio::test]

tests/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async fn receive_message_multiple_subscribed_channels() {
8888
assert_eq!(b"howdy?", &message2.content[..])
8989
}
9090

91-
/// test that a client accurately removes its own subscribed chanel list
91+
/// test that a client accurately removes its own subscribed channel list
9292
/// when unsubscribing to all subscribed channels by submitting an empty vec
9393
#[tokio::test]
9494
async fn unsubscribes_from_channels() {

0 commit comments

Comments
 (0)