Skip to content

Commit 2285c38

Browse files
author
Marshall Pierce
committed
Remove a now-obsolete panic warning, and fix a typo
1 parent ae305fc commit 2285c38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@ impl<T: Counter> Histogram<T> {
295295
// ********************************************************************************************
296296

297297
/// Find the bucket the given value should be placed in.
298-
///
299-
/// May panic if the given value falls outside the current range of the histogram.
300298
fn index_for(&self, value: u64) -> usize {
301299
let bucket_index = self.bucket_for(value);
302300
let sub_bucket_index = self.sub_bucket_for(value, bucket_index);
@@ -1110,7 +1108,7 @@ impl<T: Counter> Histogram<T> {
11101108
/// Get the count of recorded values at a specific value (to within the histogram resolution at
11111109
/// the value level).
11121110
///
1113-
/// The count is cumputed across values recorded in the histogram that are within the value
1111+
/// The count is computed across values recorded in the histogram that are within the value
11141112
/// range that is `>= lowest_equivalent(value)` and `<= highest_equivalent(value)`.
11151113
///
11161114
/// May fail if the given value is out of bounds.

0 commit comments

Comments
 (0)