Skip to content

Commit e89b703

Browse files
authored
Merge pull request #140 from fingolfin/patch-1
divisors: add doctest filter
2 parents 75274b0 + 0ea5e39 commit e89b703

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Primes.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ For convenience, `divisors(0)` returns `[]`.
968968
969969
# Example
970970
971-
```julia
971+
```jldoctest; filter = r"(\\s+#.*)?"
972972
julia> divisors(60)
973973
12-element Vector{Int64}:
974974
1 # 1
@@ -983,8 +983,7 @@ julia> divisors(60)
983983
15 # 5 * 3
984984
30 # 5 * 3 * 2
985985
60 # 5 * 3 * 2 * 2
986-
```
987-
```jldoctest
986+
988987
julia> divisors(-10)
989988
4-element Vector{Int64}:
990989
1

0 commit comments

Comments
 (0)