Skip to content

Commit de16550

Browse files
o314fredrikekre
andauthored
Update doc with correct parameterized function syntax (#336)
* Update doc with correct parameterized function syntax This format is not supported for a long time. Co-authored-by: Fredrik Ekre <[email protected]>
1 parent 4b74867 commit de16550

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Parser.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ function _get_parsercontext(dicttype, inttype, allownan, null)
425425
end
426426

427427
"""
428-
parse{T<:Associative}(str::AbstractString;
429-
dicttype::Type{T}=Dict,
430-
inttype::Type{<:Real}=Int64,
431-
allownan::Bool=true,
432-
null=nothing)
428+
parse(str::AbstractString;
429+
dicttype::Type{T}=Dict,
430+
inttype::Type{<:Real}=Int64,
431+
allownan::Bool=true,
432+
null=nothing) where {T<:AbstractDict}
433433
434434
Parses the given JSON string into corresponding Julia types.
435435
@@ -456,11 +456,11 @@ function parse(str::AbstractString;
456456
end
457457

458458
"""
459-
parse{T<:Associative}(io::IO;
460-
dicttype::Type{T}=Dict,
461-
inttype::Type{<:Real}=Int64,
462-
allownan=true,
463-
null=nothing)
459+
parse(io::IO;
460+
dicttype::Type{T}=Dict,
461+
inttype::Type{<:Real}=Int64,
462+
allownan=true,
463+
null=nothing) where {T<:AbstractDict}
464464
465465
Parses JSON from the given IO stream into corresponding Julia types.
466466

0 commit comments

Comments
 (0)