From 7793d637397a0e73096a1df31c777920545e9d1e Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 25 Mar 2019 23:54:49 +0300 Subject: [PATCH] Corrected doc for tokio_buf SizeHint (#1003) --- tokio-buf/src/size_hint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-buf/src/size_hint.rs b/tokio-buf/src/size_hint.rs index 1e818fbd6..8518f427e 100644 --- a/tokio-buf/src/size_hint.rs +++ b/tokio-buf/src/size_hint.rs @@ -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;