Skip to content

Commit

Permalink
whitespace in crate docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed May 30, 2024
1 parent 342196d commit 44da96f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
//! assert!(CACHE.is_prime(1000).is_none());
//! assert!(CACHE.count_primes_leq(1000).is_none());
//! ```
//!
//! # Example: primality checking
//!
//! Use [`is_prime`] to test whether a given number is prime:
Expand All @@ -74,7 +75,8 @@
//!
//! # Example: generate the three primes after 5000000031
//!
//! The crate also provides prime generation and sieving functions that can be used to work with ranges that don't start at zero, e.g. [`primes_geq`] and [`sieve_lt`]. These functions can use large sieves to compute large primes, but don't need to return the entire sieve, just the requested numbers.
//! The crate also provides prime generation and sieving functions that can be used to work with ranges that don't start at zero, e.g. [`primes_geq`] and [`sieve_lt`].
//! These functions can use large sieves to compute large primes, but don't need to return the entire sieve, just the requested numbers.
//! They are most conveniently used through the macros [`primes_segment!`] and [`sieve_segment!`] that automatically compute the size of the sieve that's needed for a certain computation.
//!
//! Compute 3 primes greater than or equal to 5000000031:
Expand Down

0 comments on commit 44da96f

Please sign in to comment.