sync: fix Stream link in broadcast docs (#6873)

This commit is contained in:
shray sharma
2024-09-27 13:49:06 +02:00
committed by GitHub
parent 21df16d759
commit e2e1e8e71d
+1 -1
View File
@@ -11,7 +11,7 @@ use std::task::{ready, Context, Poll};
/// A wrapper around [`tokio::sync::broadcast::Receiver`] that implements [`Stream`].
///
/// [`tokio::sync::broadcast::Receiver`]: struct@tokio::sync::broadcast::Receiver
/// [`Stream`]: trait@crate::Stream
/// [`Stream`]: trait@futures_core::Stream
#[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
pub struct BroadcastStream<T> {
inner: ReusableBoxFuture<'static, (Result<T, RecvError>, Receiver<T>)>,