From 0ea5e399400bfba2755939e6445aba853958ad04 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 20 Sep 2023 22:07:12 +0200 Subject: [PATCH] divisors: add doctest filter ... to filter out annotations added to the doctest output --- src/Primes.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Primes.jl b/src/Primes.jl index 056edcb..06e5ffd 100644 --- a/src/Primes.jl +++ b/src/Primes.jl @@ -968,7 +968,7 @@ For convenience, `divisors(0)` returns `[]`. # Example -```julia +```jldoctest; filter = r"(\\s+#.*)?" julia> divisors(60) 12-element Vector{Int64}: 1 # 1 @@ -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