Skip to content

Commit

Permalink
Example --> Examples in new() and newlines around # Panics
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Oct 20, 2023
1 parent b5c4b32 commit ed47106
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl<const N: usize> Primes<N> {
///
/// Uses a [segmented sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes#Segmented_sieve).
///
/// # Example
/// # Examples
/// Basic usage
/// ```
/// # use const_primes::Primes;
Expand All @@ -53,7 +53,9 @@ impl<const N: usize> Primes<N> {
/// 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;
Expand Down

0 comments on commit ed47106

Please sign in to comment.