Skip to content

Commit bfb6a30

Browse files
committed
fix parse method
1 parent 69f86fa commit bfb6a30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "XML"
22
uuid = "72c71f33-b9b6-44de-8c94-c961784809e2"
33
authors = ["Josh Day <[email protected]> and contributors"]
4-
version = "0.2.2"
4+
version = "0.2.3"
55

66
[deps]
77
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"

Diff for: src/raw.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Base.read(filename::String, ::Type{Raw}) = isfile(filename) ?
7373

7474
Base.read(io::IO, ::Type{Raw}) = Raw(read(io))
7575

76-
parse(x::AbstractString, ::Type{Raw}) = Raw(Vector{UInt8}(x))
76+
Base.parse(x::AbstractString, ::Type{Raw}) = Raw(Vector{UInt8}(x))
7777

7878
# Mostly for debugging
7979
Base.peek(o::Raw, n::Int) = String(@view(o.data[o.pos + o.len + 1:min(end, o.pos + o.len + n + 1)]))

Diff for: test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ end
209209
]>
210210
"""
211211

212-
doc = parse(s, Node)
212+
doc = parse(Node, s)
213213
@test value(only(doc)) == """note [
214214
<!ENTITY nbsp "&#xA0;">
215215
<!ENTITY writer "Writer: Donald Duck.">

0 commit comments

Comments
 (0)