Skip to content

Commit

Permalink
Add note about primes_segment to docstrings of primes_lt and primes_geq
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed May 7, 2024
1 parent 4908f03 commit 24aaa69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ pub const fn primes<const N: usize>() -> [Underlying; N] {
///
/// If you want to compute primes that are larger than some limit, take a look at [`primes_geq`].
///
/// If you do not wish to compute the size of the sieve manually, take a look at [`primes_segment!`].
///
/// # Example
///
/// Basic usage:
Expand Down Expand Up @@ -259,6 +261,8 @@ macro_rules! primes_segment {
///
/// If you want to compute primes smaller than some limit, take a look at [`primes_lt`].
///
/// If you do not wish to compute the size of the sieve manually, take a look at [`primes_segment!`].
///
/// # Examples
///
/// Basic usage:
Expand Down

0 comments on commit 24aaa69

Please sign in to comment.