mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-09 00:00:08 +02:00
Corrected doc for tokio_buf SizeHint (#1003)
This commit is contained in:
@@ -29,7 +29,7 @@ impl SizeHint {
|
|||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// The function panics if `value` is less than `upper`.
|
/// The function panics if `value` is greater than `upper`.
|
||||||
pub fn set_lower(&mut self, value: u64) {
|
pub fn set_lower(&mut self, value: u64) {
|
||||||
assert!(value <= self.upper.unwrap_or(u64::MAX));
|
assert!(value <= self.upper.unwrap_or(u64::MAX));
|
||||||
self.lower = value;
|
self.lower = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user