typo fix (#48)

This commit is contained in:
guanqun
2020-05-19 00:25:04 +08:00
committed by GitHub
parent 9af44d6336
commit bbaa16c6f5
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ impl Command {
let mut parse = Parse::new(frame)?;
// All redis commands begin with the command name as a string. The name
// is read and converted to lower casae in order to do case sensitive
// is read and converted to lower cases in order to do case sensitive
// matching.
let command_name = parse.next_string()?.to_lowercase();

View File

@@ -225,7 +225,7 @@ impl Listener {
//
// `acquire` returns a permit that is bound via a lifetime to the
// semaphore. When the permit value is dropped, it is automatically
// returned to the sempahore. This is convenient in many cases.
// returned to the semaphore. This is convenient in many cases.
// However, in this case, the permit must be returned in a different
// task than it is acquired in (the handler task). To do this, we
// "forget" the permit, which drops the permit value **without**
@@ -253,7 +253,7 @@ impl Listener {
// connection, a permit is added back to the semaphore.
limit_connections: self.limit_connections.clone(),
// Receive shutdown notifcations.
// Receive shutdown notifications.
shutdown: Shutdown::new(self.notify_shutdown.subscribe()),
// Notifies the receiver half once all clones are