Skip to content

Commit

Permalink
Merge pull request #140 from fingolfin/patch-1
Browse files Browse the repository at this point in the history
divisors: add doctest filter
  • Loading branch information
oscardssmith authored Sep 29, 2023
2 parents 75274b0 + 0ea5e39 commit e89b703
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Primes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ For convenience, `divisors(0)` returns `[]`.
# Example
```julia
```jldoctest; filter = r"(\\s+#.*)?"
julia> divisors(60)
12-element Vector{Int64}:
1 # 1
Expand All @@ -983,8 +983,7 @@ julia> divisors(60)
15 # 5 * 3
30 # 5 * 3 * 2
60 # 5 * 3 * 2 * 2
```
```jldoctest
julia> divisors(-10)
4-element Vector{Int64}:
1
Expand Down

0 comments on commit e89b703

Please sign in to comment.