From d6d7ad71723b630625b168c426de78dbfbe8c3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= <44257381+JSorngard@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:18:44 +0100 Subject: [PATCH] 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 --- src/check.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/check.rs b/src/check.rs index e72b5e2..3cc1269 100644 --- a/src/check.rs +++ b/src/check.rs @@ -7,6 +7,8 @@ use crate::integer_math::{mod_mul, mod_pow}; /// Does trial division with a small wheel up to `log2(n)` and then uses a /// deterministic Miller-Rabin primality test. /// +/// If the `fast_test` feature is enabled this function instead calls [`machine_prime::is_prime`] with the `small` feature. +/// /// # Example /// /// Basic usage: