From 2a1ff9ad91b9623ea4ebe771c8e99d652e890d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Wed, 13 Nov 2024 17:05:28 +0100 Subject: [PATCH] Correct docstring of Default::default function on cahce --- src/cache/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 97d1835..5b736ef 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -580,8 +580,7 @@ pub struct PartialTotient { } impl Default for Primes { - /// 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())