File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ impl Subscriber {
457
457
self . subscribed_channels . retain ( |c| * channel != & c[ ..] ) ;
458
458
459
459
// Only a single channel should be removed from the
460
- // liste of subscribed channels.
460
+ // list of subscribed channels.
461
461
if self . subscribed_channels . len ( ) != len - 1 {
462
462
return Err ( response. to_error ( ) ) ;
463
463
}
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ impl Set {
105
105
Ok ( Set { key, value, expire } )
106
106
}
107
107
108
- /// Apply the `Get` command to the specified `Db` instace .
108
+ /// Apply the `Get` command to the specified `Db` instance .
109
109
///
110
110
/// The response is written to `dst`. This is called by the server in order
111
111
/// to execute a received command.
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ impl Connection {
54
54
/// # Returns
55
55
///
56
56
/// On success, the received frame is returned. If the `TcpStream`
57
- /// is closed in a way that doesn't break a frame in half, it retuns
57
+ /// is closed in a way that doesn't break a frame in half, it returns
58
58
/// `None`. Otherwise, an error is returned.
59
59
pub ( crate ) async fn read_frame ( & mut self ) -> crate :: Result < Option < Frame > > {
60
60
use frame:: Error :: Incomplete ;
@@ -98,7 +98,7 @@ impl Connection {
98
98
// When `advance` is called on the read buffer, all of the
99
99
// data up to `len` is discarded. The details of how this
100
100
// works is left to `BytesMut`. This is often done by moving
101
- // an internal cursor, but it may be done by reallocataing
101
+ // an internal cursor, but it may be done by reallocating
102
102
// and copying data.
103
103
self . buffer . advance ( len) ;
104
104
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ impl Drop for Db {
253
253
//
254
254
// First, determine if this is the last `Db` instance. This is done by
255
255
// checking `strong_count`. The count will be 2. One for this `Db`
256
- // intance and one for the handle held by the background task.
256
+ // instance and one for the handle held by the background task.
257
257
if Arc :: strong_count ( & self . shared ) == 2 {
258
258
// The background task must be signaled to shutdown. This is done by
259
259
// setting `State::shutdown` to `true` and signalling the task.
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub const DEFAULT_PORT: &str = "6379";
55
55
/// Error returned by most functions.
56
56
///
57
57
/// When writing a real application, one might want to consider a specialized
58
- /// errror handling crate or defining an error type as an `enum` of causes.
58
+ /// error handling crate or defining an error type as an `enum` of causes.
59
59
/// However, for our example, using a boxed `std::error::Error` is sufficient.
60
60
///
61
61
/// For performance reasons, boxing is avoided in any hot path. For example, in
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ struct Handler {
98
98
/// connection until the peer disconnects **or** a shutdown notification is
99
99
/// received from `shutdown`. In the latter case, any in-flight work being
100
100
/// processed for the peer is continued until it reaches a safe state, at
101
- /// which point the connction is terminated.
101
+ /// which point the connection is terminated.
102
102
shutdown : Shutdown ,
103
103
104
104
/// Not used directly. Instead, when `Handler` is dropped...?
@@ -380,7 +380,7 @@ impl Drop for Handler {
380
380
// Doing so unblocks the listener if the max number of
381
381
// connections has been reached.
382
382
//
383
- // This is done in a `Drop` implementation in order to guaranatee that
383
+ // This is done in a `Drop` implementation in order to guarantee that
384
384
// the permit is added even if the task handling the connection panics.
385
385
// If `add_permit` was called at the end of the `run` function and some
386
386
// bug causes a panic. The permit would never be returned to the
You can’t perform that action at this time.
0 commit comments