Skip to content

Commit 5da177a

Browse files
Merge pull request #138 from JuliaDocs/mh/fix-win-test-failure
Fix ordering of arguments on newer Windows versions
2 parents 3892841 + 467e725 commit 5da177a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/abbreviations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function format(::TypedMethodSignatures, buf, doc)
394394
end
395395
end
396396

397-
if Sys.iswindows()
397+
@static if Sys.iswindows() && VERSION < v"1.8"
398398
t = tuples[findlast(f, tuples)]
399399
else
400400
t = tuples[findfirst(f, tuples)]

test/tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ end
200200
@test occursin("\n```julia\n", str)
201201
f = str -> replace(str, " " => "")
202202
str = f(str)
203-
if Sys.iswindows()
203+
if Sys.iswindows() && VERSION < v"1.8"
204204
@test occursin(f("h_1(\nx::Union{Array{T,4}, Array{T,3}} where T\n) -> Union{Array{T,4}, Array{T,3}} where T"), str)
205205
else
206206
@test occursin(f("h_1(\nx::Union{Array{T,3}, Array{T,4}} where T\n) -> Union{Array{T,3}, Array{T,4}} where T"), str)

0 commit comments

Comments
 (0)