From 75be1a5a032e83ed9e4d80d3e1f09fa849eb147f Mon Sep 17 00:00:00 2001 From: Evan Simmons Date: Mon, 23 May 2022 12:08:29 -0700 Subject: [PATCH] fix doctest --- tokio/src/sync/broadcast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/sync/broadcast.rs b/tokio/src/sync/broadcast.rs index 993e048f13d..33a15805ad6 100644 --- a/tokio/src/sync/broadcast.rs +++ b/tokio/src/sync/broadcast.rs @@ -901,7 +901,7 @@ impl Receiver { /// let mut rx2 = rx.resubscribe(); /// tx.send(2).unwrap(); /// - /// assert_neq!(rx.recv().await.unwrap(), rx2.recv().await.unwrap()); // 1 != 2 + /// assert_eq!(rx.recv().await.unwrap(), rx2.recv().await.unwrap()); // 1 != 2 /// } /// ``` pub fn resubscribe(&self) -> Self {