Skip to content

Commit ed1c138

Browse files
committed
Same info about overestimating memory in macro docstirngs
1 parent 8b91668 commit ed1c138

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub const fn primes_lt<const N: usize, const MEM: usize>(
229229
///
230230
/// Estimates the value of the const generic `MEM` as `isqrt(upper_limit) + 1` for [`primes_lt`]
231231
/// and as `isqrt(lower_limit) + 1 + N` for [`primes_geq`].
232-
/// This will use more memory than needed for `primes_geq`.
232+
/// This may overestimate the memory requirement for `primes_geq`.
233233
///
234234
/// # Example
235235
///

src/sieve.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ pub const fn sieve_geq<const N: usize, const MEM: usize>(
345345
///
346346
/// Computes the value of the const generic `MEM` as `isqrt(upper_limit) + 1` for [`sieve_lt`]
347347
/// and as `isqrt(lower_limit) + 1 + N` for [`sieve_geq`].
348+
/// This may overestimate the memory requirement for `sieve_geq`.
348349
///
349350
/// # Examples
350351
///

0 commit comments

Comments
 (0)