mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
metrics: fix panic comment in max_error
docs (#7273)
This commit is contained in:
parent
7a6c424f6e
commit
d41d49d202
@ -174,8 +174,8 @@ impl LogHistogramBuilder {
|
||||
/// less than this will be truncated.
|
||||
///
|
||||
/// # Panics
|
||||
/// - `max_error` < 0
|
||||
/// - `max_error` > 1
|
||||
/// - `max_error` <= 0
|
||||
/// - `max_error` >= 1
|
||||
pub fn max_error(mut self, max_error: f64) -> Self {
|
||||
assert!(max_error > 0.0, "max_error must be greater than 0");
|
||||
assert!(max_error < 1.0, "max_error must be less than 1");
|
||||
|
Loading…
x
Reference in New Issue
Block a user