Skip to content

Commit bbaa16c

Browse files
author
guanqun
authored
typo fix (#48)
1 parent 9af44d6 commit bbaa16c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cmd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Command {
4646
let mut parse = Parse::new(frame)?;
4747

4848
// All redis commands begin with the command name as a string. The name
49-
// is read and converted to lower casae in order to do case sensitive
49+
// is read and converted to lower cases in order to do case sensitive
5050
// matching.
5151
let command_name = parse.next_string()?.to_lowercase();
5252

src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl Listener {
225225
//
226226
// `acquire` returns a permit that is bound via a lifetime to the
227227
// semaphore. When the permit value is dropped, it is automatically
228-
// returned to the sempahore. This is convenient in many cases.
228+
// returned to the semaphore. This is convenient in many cases.
229229
// However, in this case, the permit must be returned in a different
230230
// task than it is acquired in (the handler task). To do this, we
231231
// "forget" the permit, which drops the permit value **without**
@@ -253,7 +253,7 @@ impl Listener {
253253
// connection, a permit is added back to the semaphore.
254254
limit_connections: self.limit_connections.clone(),
255255

256-
// Receive shutdown notifcations.
256+
// Receive shutdown notifications.
257257
shutdown: Shutdown::new(self.notify_shutdown.subscribe()),
258258

259259
// Notifies the receiver half once all clones are

0 commit comments

Comments
 (0)