Skip to content

Commit 168d746

Browse files
author
Evan Simmons
committed
use suggestion
1 parent 75be1a5 commit 168d746

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tokio/src/sync/broadcast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,8 @@ impl<T: Clone> Receiver<T> {
901901
/// let mut rx2 = rx.resubscribe();
902902
/// tx.send(2).unwrap();
903903
///
904-
/// assert_eq!(rx.recv().await.unwrap(), rx2.recv().await.unwrap()); // 1 != 2
904+
/// assert_eq!(rx2.recv().await.unwrap(), 2);
905+
/// assert_eq!(rx.recv().await.unwrap(), 1);
905906
/// }
906907
/// ```
907908
pub fn resubscribe(&self) -> Self {

0 commit comments

Comments
 (0)