sync: fix broadcast::channel link (#6100)

Co-authored-by: Xianhua Zhou <xianhua.zhou@mdpi.com>
This commit is contained in:
xianhua zhou 2023-10-23 23:40:17 +08:00 committed by GitHub
parent 70410836ae
commit bc48a6fa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,7 +479,7 @@ impl<T> Sender<T> {
/// See the documentation of [`broadcast::channel`] for more information on this method.
///
/// [`broadcast`]: crate::sync::broadcast
/// [`broadcast::channel`]: crate::sync::broadcast
/// [`broadcast::channel`]: crate::sync::broadcast::channel
#[track_caller]
pub fn new(capacity: usize) -> Self {
// SAFETY: We don't create extra receivers, so there are 0.