Skip to content

Commit

Permalink
Disable failing doctest
Browse files Browse the repository at this point in the history
This doctest annotates the output of `divisors(60)`, which is nice, but Documenter doesn't like it. So just turn it into a plain code block without any testing.
  • Loading branch information
fingolfin authored Sep 20, 2023
1 parent dc7c2cc commit dea3b32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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
```jldoctest
```julia
julia> divisors(60)
12-element Vector{Int64}:
1 # 1
Expand All @@ -983,7 +983,8 @@ 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 dea3b32

Please sign in to comment.