docs: fix typos (#109)

This commit is contained in:
Kim Chan
2022-08-23 01:47:13 +08:00
committed by GitHub
parent 419ac973ef
commit d3826795af
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ impl Listener {
// to the semaphore. // to the semaphore.
// //
// `acquire_owned()` returns `Err` when the semaphore has been // `acquire_owned()` returns `Err` when the semaphore has been
// closed. We don't ever close the sempahore, so `unwrap()` is safe. // closed. We don't ever close the semaphore, so `unwrap()` is safe.
let permit = self let permit = self
.limit_connections .limit_connections
.clone() .clone()

View File

@@ -67,7 +67,7 @@ async fn receive_message_multiple_subscribed_channels() {
} }
/// test that a client accurately removes its own subscribed chanel list /// test that a client accurately removes its own subscribed chanel list
/// when unbscribing to all subscribed channels by submitting an empty vec /// when unsubscribing to all subscribed channels by submitting an empty vec
#[tokio::test] #[tokio::test]
async fn unsubscribes_from_channels() { async fn unsubscribes_from_channels() {
let (addr, _) = start_server().await; let (addr, _) = start_server().await;