diff --git a/src/wrapper.rs b/src/wrapper.rs index 7a41a5d..25f2d75 100644 --- a/src/wrapper.rs +++ b/src/wrapper.rs @@ -35,7 +35,7 @@ impl Primes { /// /// Uses a [segmented sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes#Segmented_sieve). /// - /// # Example + /// # Examples /// Basic usage /// ``` /// # use const_primes::Primes; @@ -53,7 +53,9 @@ impl Primes { /// let primes = Primes::<5>::new(); /// assert_eq!(primes, [2, 3, 5, 7, 11]); /// ``` + /// /// # Panics + /// /// Panics if `N` is zero. In const contexts this will fail to compile /// ```compile_fail /// # use const_primes::Primes;