Skip to content

Commit 3d36ceb

Browse files
authored
Merge pull request #20 from marshallpierce/fix-some-comments
Remove a now-obsolete panic warning, and fix a typo
2 parents bd878c1 + 2285c38 commit 3d36ceb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,6 @@ impl<T: Counter> Histogram<T> {
293293
// ********************************************************************************************
294294

295295
/// Find the bucket the given value should be placed in.
296-
///
297-
/// May panic if the given value falls outside the current range of the histogram.
298296
fn index_for(&self, value: u64) -> usize {
299297
let bucket_index = self.bucket_for(value);
300298
let sub_bucket_index = self.sub_bucket_for(value, bucket_index);
@@ -1104,7 +1102,7 @@ impl<T: Counter> Histogram<T> {
11041102
/// Get the count of recorded values at a specific value (to within the histogram resolution at
11051103
/// the value level).
11061104
///
1107-
/// The count is cumputed across values recorded in the histogram that are within the value
1105+
/// The count is computed across values recorded in the histogram that are within the value
11081106
/// range that is `>= lowest_equivalent(value)` and `<= highest_equivalent(value)`.
11091107
///
11101108
/// May fail if the given value is out of bounds.

0 commit comments

Comments
 (0)