From 9bc782acfcebf198eda21be63d5b315bf40b565b Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Thu, 21 Sep 2023 10:44:27 +0200 Subject: [PATCH] sync: fix incorrect comment (#6020) --- tokio/src/sync/watch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/sync/watch.rs b/tokio/src/sync/watch.rs index 61307fce4..7287dd9fa 100644 --- a/tokio/src/sync/watch.rs +++ b/tokio/src/sync/watch.rs @@ -824,7 +824,7 @@ fn maybe_changed( } if state.is_closed() { - // All receivers have dropped. + // The sender has been dropped. return Some(Err(error::RecvError(()))); }