Skip to content

Commit

Permalink
Correct docstring of Default::default function on cahce
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Nov 13, 2024
1 parent 3259e7a commit 2a1ff9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,7 @@ pub struct PartialTotient {
}

impl<const N: usize> Default for Primes<N> {
/// Panics if `N` is 0.
/// This is always a compile error instead of a panic if the `const_assert` feature is enabled.
/// It is a compile error if `N` is 0.
fn default() -> Self {
const { assert!(N > 0, "`N` must be at least 1") }
Self(primes())
Expand Down

0 comments on commit 2a1ff9a

Please sign in to comment.