diff --git a/tokio/src/sync/broadcast.rs b/tokio/src/sync/broadcast.rs index 6cd0bfe93..b21c3d0e5 100644 --- a/tokio/src/sync/broadcast.rs +++ b/tokio/src/sync/broadcast.rs @@ -503,7 +503,7 @@ const MAX_RECEIVERS: usize = usize::MAX >> 2; /// This will panic if `capacity` is equal to `0`. /// /// This pre-allocates space for `capacity` messages. Allocation failure may result in a panic or -/// [an allocation failure](std::alloc::handle_alloc_error). +/// [an allocation error](std::alloc::handle_alloc_error). #[track_caller] pub fn channel(capacity: usize) -> (Sender, Receiver) { // SAFETY: In the line below we are creating one extra receiver, so there will be 1 in total.