File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,9 @@ impl<const N: usize> Primes<N> {
165
165
/// If `n` is larger than or equal to the largest prime in `self` this returns `None`.
166
166
///
167
167
/// Uses a binary search.
168
+ ///
168
169
/// # Example
170
+ ///
169
171
/// ```
170
172
/// # use const_primes::Primes;
171
173
/// const CACHE: Primes<100> = Primes::new();
@@ -283,6 +285,7 @@ impl<const N: usize> Primes<N> {
283
285
/// Returns a reference to the last prime in `self`. This is also the largest prime in `self`.
284
286
///
285
287
/// # Example
288
+ ///
286
289
/// Basic usage
287
290
/// ```
288
291
/// # use const_primes::Primes;
@@ -301,6 +304,7 @@ impl<const N: usize> Primes<N> {
301
304
/// Returns the number of primes in `self`.
302
305
///
303
306
/// # Example
307
+ ///
304
308
/// ```
305
309
/// # use const_primes::Primes;
306
310
/// const PRIMES: Primes<5> = Primes::new();
You can’t perform that action at this time.
0 commit comments