Skip to content

Commit

Permalink
use suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simmons committed May 24, 2022
1 parent e06e907 commit 695babe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokio/src/sync/broadcast.rs
Expand Up @@ -901,7 +901,8 @@ impl<T: Clone> Receiver<T> {
/// let mut rx2 = rx.resubscribe();
/// tx.send(2).unwrap();
///
/// assert_eq!(rx.recv().await.unwrap(), rx2.recv().await.unwrap()); // 1 != 2
/// assert_eq!(rx2.recv().await.unwrap(), 2);
/// assert_eq!(rx.recv().await.unwrap(), 1);
/// }
/// ```
pub fn resubscribe(&self) -> Self {
Expand Down

0 comments on commit 695babe

Please sign in to comment.