diff --git a/src/cache.rs b/src/cache.rs index 80ce173..5ee05ba 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -160,7 +160,7 @@ impl Primes { /// # use const_primes::Primes; /// # const CACHE: Primes<3> = Primes::new(); /// // 1024 = 2^10 - /// assert_eq!(CACHE.prime_factorization(1024).collect::>(), &[(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: /// ```