Fix typos (#145)

This commit is contained in:
John Vandenberg
2024-06-27 22:55:21 +08:00
committed by GitHub
parent ab7353bc23
commit c2b18b96d1
5 changed files with 5 additions and 5 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -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]

View File

@@ -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() {