From 36bcfa6b9d5b722bab5bdb68814988ded917802b Mon Sep 17 00:00:00 2001 From: Pen Tree Date: Tue, 16 Feb 2021 03:21:27 +0800 Subject: [PATCH] doc: rename notify to notify_one (#3526) --- tokio/src/sync/notify.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/sync/notify.rs b/tokio/src/sync/notify.rs index f39f92f83..90ec8a2c6 100644 --- a/tokio/src/sync/notify.rs +++ b/tokio/src/sync/notify.rs @@ -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()`. ///