mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
docs: fix typos in bounded.rs and park.rs (#7817)
This commit is contained in:
@@ -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<Inner>) -> RawWaker {
|
unsafe fn unparker_to_raw_waker(unparker: Arc<Inner>) -> RawWaker {
|
||||||
RawWaker::new(
|
RawWaker::new(
|
||||||
Inner::into_raw(unparker),
|
Inner::into_raw(unparker),
|
||||||
|
|||||||
@@ -1128,7 +1128,7 @@ impl<T> Sender<T> {
|
|||||||
/// A [`PermitIterator`] is returned to track the reserved capacity.
|
/// A [`PermitIterator`] is returned to track the reserved capacity.
|
||||||
/// You can call this [`Iterator`] until it is exhausted to
|
/// You can call this [`Iterator`] until it is exhausted to
|
||||||
/// get a [`Permit`] and then call [`Permit::send`]. This function is similar 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`].
|
/// If the channel is closed, the function returns a [`SendError`].
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user