Skip to content

Commit 6845706

Browse files
committed
Update doctest version guard (1.2 -> 1.4)
And add the same to docs/make.jl
1 parent 0e9bc82 commit 6845706

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Documenter, Flux, NNlib
22

33
DocMeta.setdocmeta!(Flux, :DocTestSetup, :(using Flux); recursive=true)
44
makedocs(modules=[Flux, NNlib],
5-
doctest = true,
5+
doctest = VERSION >= v"1.4",
66
sitename = "Flux",
77
pages = ["Home" => "index.md",
88
"Building Models" =>

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Random.seed!(0)
4141
end
4242

4343
@testset "Docs" begin
44-
if VERSION >= v"1.2"
44+
if VERSION >= v"1.4"
4545
DocMeta.setdocmeta!(Flux, :DocTestSetup, :(using Flux); recursive=true)
4646
doctest(Flux)
4747
end

0 commit comments

Comments
 (0)