Skip to content

Commit d6d7ad7

Browse files
authored
Document that the feature fast_test affects is_prime also in its docs (#88)
* Document that the feature affects is_prime also in its docs * cargo fmt
1 parent 6fc4e9f commit d6d7ad7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/check.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use crate::integer_math::{mod_mul, mod_pow};
77
/// Does trial division with a small wheel up to `log2(n)` and then uses a
88
/// deterministic Miller-Rabin primality test.
99
///
10+
/// If the `fast_test` feature is enabled this function instead calls [`machine_prime::is_prime`] with the `small` feature.
11+
///
1012
/// # Example
1113
///
1214
/// Basic usage:

0 commit comments

Comments
 (0)