Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simmons committed May 23, 2022
1 parent 8b274de commit 75be1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/broadcast.rs
Expand Up @@ -901,7 +901,7 @@ impl<T: Clone> Receiver<T> {
/// 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 {
Expand Down

0 comments on commit 75be1a5

Please sign in to comment.