Skip to content

Commit 02cc111

Browse files
authored
avoid using "type" for Julia 0.7 compatibility (#114)
1 parent 27fb71c commit 02cc111

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/node.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,11 @@ end
297297

298298
function Base.show(io::IO, node::Node)
299299
prefix = isdefined(Main, :Node) ? "Node" : "EzXML.Node"
300-
type = nodetype(node)
301-
if type (ELEMENT_NODE, ATTRIBUTE_NODE) && hasnodename(node)
302-
desc = string(repr(type), '[', nodename(node), ']')
300+
ntype = nodetype(node)
301+
if ntype (ELEMENT_NODE, ATTRIBUTE_NODE) && hasnodename(node)
302+
desc = string(repr(ntype), '[', nodename(node), ']')
303303
else
304-
desc = repr(type)
304+
desc = repr(ntype)
305305
end
306306
@printf(io, "%s(<%s@%p>)", prefix, desc, node.ptr)
307307
end

0 commit comments

Comments
 (0)