From 24aaa69033df94defead48c31ade19227110d626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= Date: Tue, 7 May 2024 15:57:17 +0200 Subject: [PATCH] Add note about primes_segment to docstrings of primes_lt and primes_geq --- src/generation.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generation.rs b/src/generation.rs index d7a0d51..3d1656d 100644 --- a/src/generation.rs +++ b/src/generation.rs @@ -115,6 +115,8 @@ pub const fn primes() -> [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: @@ -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: