Skip to content

Commit

Permalink
Add docstrings to SieveError variants
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed May 10, 2024
1 parent 59ddee2 commit 656ff88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sieving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ pub const fn sieve<const N: usize>() -> [bool; N] {
/// is invalid.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum SieveError {
/// The limit was less than or equal to `N` (for `sieve_lt`).
TooSmallLimit,
/// `limit` or `limit + MEM` was larger than or equal to `MEM`^2.
NotEnoughMemory,
/// `limit + MEM` did not fit in a `u64`.
TotalDoesntFitU64,
}

Expand Down

0 comments on commit 656ff88

Please sign in to comment.