Skip to content

Commit e1b2758

Browse files
committed
Clarify comment
1 parent ed0f5e3 commit e1b2758

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tokio/src/runtime/builder.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,6 @@ impl Builder {
12221222
/// .unwrap();
12231223
/// ```
12241224
///
1225-
///
12261225
/// [`LogHistogram`]: crate::runtime::LogHistogram
12271226
/// [default configuration]: crate::runtime::LogHistogramBuilder
12281227
pub fn metrics_poll_count_histogram_configuration(&mut self, configuration: HistogramConfiguration) -> &mut Self {

tokio/src/runtime/metrics/histogram/h2_histogram.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ impl LogHistogram {
121121
/// the range from 0 to [`LogHistogramBuilder::min_value`] and the final bucket covers
122122
/// [`LogHistogramBuilder::max_value`] to infinity. The precision is bounded to the specified
123123
/// [`LogHistogramBuilder::max_error`]. Specifically, the precision is the next smallest value
124-
/// of `2^-p` such that it is smaller than the requested precision.
124+
/// of `2^-p` such that it is smaller than the requested max error. You can also select `p` directly
125+
/// with [`LogHistogramBuilder::precision_exact`].
125126
///
126127
/// Depending on the selected parameters, the number of buckets required is variable. To ensure
127128
/// that the histogram size is acceptable, callers may call [`LogHistogramBuilder::max_buckets`].

0 commit comments

Comments
 (0)