From a6bc7d73c0d56f14e298018496360729ce62ba77 Mon Sep 17 00:00:00 2001 From: Pen Tree Date: Mon, 15 Feb 2021 14:00:01 +0800 Subject: [PATCH 1/2] doc: rename notify to notify_one there is no more method `notify`, it has been renamed to `notify_one` --- tokio/src/sync/notify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/sync/notify.rs b/tokio/src/sync/notify.rs index f39f92f8374..13875427c5d 100644 --- a/tokio/src/sync/notify.rs +++ b/tokio/src/sync/notify.rs @@ -349,7 +349,7 @@ 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 + /// `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()`. From bf0193b8c3626cd4992ee351b368019b9eaa250d Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Mon, 15 Feb 2021 09:21:39 +0100 Subject: [PATCH 2/2] Fix broken link --- tokio/src/sync/notify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/sync/notify.rs b/tokio/src/sync/notify.rs index 13875427c5d..90ec8a2c65d 100644 --- a/tokio/src/sync/notify.rs +++ b/tokio/src/sync/notify.rs @@ -350,7 +350,7 @@ impl Notify { /// /// If a task is currently waiting, that task is notified. Unlike with /// `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 + /// `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()`. ///