Skip to content

Commit

Permalink
improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed May 6, 2024
1 parent d64b58c commit 96973ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,11 @@ macro_rules! ඞ_const_primes_isqrt {
/// const PRIMES_LT: const_primes::Result<3> = const_primes!(3; < LIMIT);
/// // Can also be used at runtime:
/// let primes = const_primes!(3);
/// let hmm = const_primes!(3; >= 100);
/// let primes_geq = const_primes!(3; >= LIMIT)?;
///
/// assert_eq!(primes, PRIMES);
/// assert_eq!(PRIMES, [2, 3, 5]);
/// assert_eq!(PRIMES_GEQ?, primes_geq);
/// assert_eq!(PRIMES_GEQ?, [5000000039, 5000000059, 5000000063]);
/// assert_eq!(PRIMES_LT?, [4999999903, 4999999937, 5000000029]);
/// # Ok::<(), Error>(())
Expand Down

0 comments on commit 96973ab

Please sign in to comment.