doc: rename notify to notify_one (#3526)

This commit is contained in:
Pen Tree 2021-02-16 03:21:27 +08:00 committed by GitHub
parent e3f2dcf5bc
commit 36bcfa6b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,8 +349,8 @@ impl Notify {
/// Notifies all waiting tasks
///
/// If a task is currently waiting, that task is notified. Unlike with
/// `notify()`, no permit is stored to be used by the next call to
/// [`notified().await`]. The purpose of this method is to notify all
/// `notify_one()`, no permit is stored to be used by the next call to
/// `notified().await`. The purpose of this method is to notify all
/// already registered waiters. Registering for notification is done by
/// acquiring an instance of the `Notified` future via calling `notified()`.
///