mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-11-03 14:02:47 +00:00
sync: fix broadcast::channel link (#6100)
Co-authored-by: Xianhua Zhou <xianhua.zhou@mdpi.com>
This commit is contained in:
parent
70410836ae
commit
bc48a6fa8d
@ -479,7 +479,7 @@ impl<T> Sender<T> {
|
|||||||
/// See the documentation of [`broadcast::channel`] for more information on this method.
|
/// See the documentation of [`broadcast::channel`] for more information on this method.
|
||||||
///
|
///
|
||||||
/// [`broadcast`]: crate::sync::broadcast
|
/// [`broadcast`]: crate::sync::broadcast
|
||||||
/// [`broadcast::channel`]: crate::sync::broadcast
|
/// [`broadcast::channel`]: crate::sync::broadcast::channel
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn new(capacity: usize) -> Self {
|
pub fn new(capacity: usize) -> Self {
|
||||||
// SAFETY: We don't create extra receivers, so there are 0.
|
// SAFETY: We don't create extra receivers, so there are 0.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user