From bd3940c14fb22718b16b8e84fbfc40a6b43a5e5f Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 1 Jan 2026 23:52:17 +0530 Subject: [PATCH] docs: fix typos in bounded.rs and park.rs (#7817) --- tokio/src/runtime/park.rs | 2 +- tokio/src/sync/mpsc/bounded.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/runtime/park.rs b/tokio/src/runtime/park.rs index d0ab07a60..cf502c404 100644 --- a/tokio/src/runtime/park.rs +++ b/tokio/src/runtime/park.rs @@ -313,7 +313,7 @@ impl Inner { } } -// TODO: Is this really a unsafe function? +// TODO: Is this really an unsafe function? unsafe fn unparker_to_raw_waker(unparker: Arc) -> RawWaker { RawWaker::new( Inner::into_raw(unparker), diff --git a/tokio/src/sync/mpsc/bounded.rs b/tokio/src/sync/mpsc/bounded.rs index 97db06b39..c5ebb4749 100644 --- a/tokio/src/sync/mpsc/bounded.rs +++ b/tokio/src/sync/mpsc/bounded.rs @@ -1128,7 +1128,7 @@ impl Sender { /// A [`PermitIterator`] is returned to track the reserved capacity. /// You can call this [`Iterator`] until it is exhausted to /// get a [`Permit`] and then call [`Permit::send`]. This function is similar to - /// [`try_reserve_many`] except it awaits for the slots to become available. + /// [`try_reserve_many`] except it waits for the slots to become available. /// /// If the channel is closed, the function returns a [`SendError`]. ///