Skip to content

Commit 68598a4

Browse files
committed
Add information about the fast_test feature to the docstring of is_prime
1 parent 384264c commit 68598a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/check.rs

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

0 commit comments

Comments
 (0)