Skip to content

Commit

Permalink
amend panic docs
Browse files Browse the repository at this point in the history
reflects the fact that, despite the use of expect, current code does not panic
  • Loading branch information
chris-ha458 committed Sep 19, 2023
1 parent 93f6fba commit 1ab1d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ where
/// be worth experimenting to see which of the two methods is faster.
///
/// [`most_common_ordered`]: Counter::most_common_ordered
///
///
/// # Panics
/// Panics if heap is empty
/// Preconditions ensure that the current implementation does not panic.
pub fn k_most_common_ordered(&self, k: usize) -> Vec<(T, N)> {
use std::cmp::Reverse;

Expand Down

0 comments on commit 1ab1d58

Please sign in to comment.