mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
sync: fix typo in Notify documentation (#2794)
This commit is contained in:
@@ -26,7 +26,7 @@ use std::task::{Context, Poll, Waker};
|
|||||||
/// be made available, consumes the permit, and resumes. [`notify()`] sets the
|
/// be made available, consumes the permit, and resumes. [`notify()`] sets the
|
||||||
/// permit, waking a pending task if there is one.
|
/// permit, waking a pending task if there is one.
|
||||||
///
|
///
|
||||||
/// If `notify()` is called **before** `notfied().await`, then the next call to
|
/// If `notify()` is called **before** `notified().await`, then the next call to
|
||||||
/// `notified().await` will complete immediately, consuming the permit. Any
|
/// `notified().await` will complete immediately, consuming the permit. Any
|
||||||
/// subsequent calls to `notified().await` will wait for a new permit.
|
/// subsequent calls to `notified().await` will wait for a new permit.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user