From 8efd04e38284f2da2d1b3abc8496a511e131d1ce Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Tue, 9 Sep 2025 12:05:14 +0300 Subject: [PATCH] sync: reword allocation failure paragraph in broadcast docs (#7595) --- tokio/src/sync/broadcast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.