Corrected doc for tokio_buf SizeHint (#1003)

This commit is contained in:
MOZGIII
2019-03-25 16:54:49 -04:00
committed by Lucio Franco
parent e0e26bc223
commit 7793d63739
+1 -1
View File
@@ -29,7 +29,7 @@ impl SizeHint {
///
/// # 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) {
assert!(value <= self.upper.unwrap_or(u64::MAX));
self.lower = value;