Skip to content

Commit

Permalink
Clerer prime_factorization example code
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed May 30, 2024
1 parent 44da96f commit 333543b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl<const N: usize> Primes<N> {
/// # use const_primes::Primes;
/// # const CACHE: Primes<3> = Primes::new();
/// // 1024 = 2^10
/// assert_eq!(CACHE.prime_factorization(1024).collect::<Vec<_>>(), &[(2, 10)]);
/// assert_eq!(CACHE.prime_factorization(1024).next(), Some((2, 10)));
/// ```
/// 42 has 7 as a prime factor, but 7 is not in the cache:
/// ```
Expand Down

0 comments on commit 333543b

Please sign in to comment.