Skip to content

Commit

Permalink
Fix typos (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Jun 27, 2024
1 parent ab7353b commit c2b18b9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ asynchronous Rust patterns with Tokio.
Commands or other features should only be added if doing so is useful to
demonstrate a new pattern.

Contributions should come with extensive comments targetted to new Tokio users.
Contributions should come with extensive comments targeted to new Tokio users.

Contributions that only focus on clarifying and improving comments are very
welcome.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl Set {
frame.push_bulk(Bytes::from(self.key.into_bytes()));
frame.push_bulk(self.value);
if let Some(ms) = self.expire {
// Expirations in Redis procotol can be specified in two ways
// Expirations in Redis protocol can be specified in two ways
// 1. SET key value EX seconds
// 2. SET key value PX milliseconds
// We the second option because it allows greater precision and
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/subscribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async fn handle_command(
Ok(())
}

/// Creates the response to a subcribe request.
/// Creates the response to a subscribe request.
///
/// All of these functions take the `channel_name` as a `String` instead of
/// a `&str` since `Bytes::from` can reuse the allocation in the `String`, and
Expand Down
2 changes: 1 addition & 1 deletion tests/buffered_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tokio::net::TcpListener;
use tokio::task::JoinHandle;

/// A basic "hello world" style test. A server instance is started in a
/// background task. A client instance is then established and used to intialize
/// background task. A client instance is then established and used to initialize
/// the buffer. Set and get commands are sent to the server. The response is
/// then evaluated.
#[tokio::test]
Expand Down
2 changes: 1 addition & 1 deletion tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async fn receive_message_multiple_subscribed_channels() {
assert_eq!(b"howdy?", &message2.content[..])
}

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

0 comments on commit c2b18b9

Please sign in to comment.