Skip to content

Commit 9329929

Browse files
committed
add at-compat to avoid possibly breaking on some early 0.4-dev versions
1 parent f7c3a0c commit 9329929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ set_attribute(x::XMLElement, name::AbstractString, val) = set_attribute(x, name,
329329
if VERSION < v"0.4.0-dev+980"
330330
const PairTypes = NTuple{2}
331331
else
332-
const PairTypes = Union{NTuple{2}, Pair}
332+
const PairTypes = @compat Union{NTuple{2}, Pair}
333333
end
334334

335335
function set_attributes{P<:PairTypes}(x::XMLElement, attrs::AbstractArray{P})

0 commit comments

Comments
 (0)