diff --git a/tokio/src/sync/mpsc/bounded.rs b/tokio/src/sync/mpsc/bounded.rs index 2bbffcecb..4fc300ca4 100644 --- a/tokio/src/sync/mpsc/bounded.rs +++ b/tokio/src/sync/mpsc/bounded.rs @@ -127,7 +127,10 @@ pub struct Receiver { /// /// # Panics /// -/// Panics if the buffer capacity is 0. +/// Panics if the buffer capacity is 0, or too large. Currently the maximum +/// capacity is [`Semaphore::MAX_PERMITS`]. +/// +/// [`Semaphore::MAX_PERMITS`]: crate::sync::Semaphore::MAX_PERMITS /// /// # Examples ///