Skip to content

Commit

Permalink
remove pointless # panics section
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ha458 committed Sep 19, 2023
1 parent 1ab1d58 commit eca86c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,7 @@ where
/// be worth experimenting to see which of the two methods is faster.
///
/// [`most_common_ordered`]: Counter::most_common_ordered
///
/// # Panics
/// Preconditions ensure that the current implementation does not panic.
#[allow(clippy::missing_panics_doc)] // 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 eca86c5

Please sign in to comment.