Skip to content

Commit

Permalink
Update doc with correct parameterized function syntax (#336)
Browse files Browse the repository at this point in the history
* Update doc with correct parameterized function syntax

This format is not supported for a long time.

Co-authored-by: Fredrik Ekre <[email protected]>
  • Loading branch information
o314 and fredrikekre authored Feb 15, 2022
1 parent 4b74867 commit de16550
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ function _get_parsercontext(dicttype, inttype, allownan, null)
end

"""
parse{T<:Associative}(str::AbstractString;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan::Bool=true,
null=nothing)
parse(str::AbstractString;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan::Bool=true,
null=nothing) where {T<:AbstractDict}
Parses the given JSON string into corresponding Julia types.
Expand All @@ -456,11 +456,11 @@ function parse(str::AbstractString;
end

"""
parse{T<:Associative}(io::IO;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan=true,
null=nothing)
parse(io::IO;
dicttype::Type{T}=Dict,
inttype::Type{<:Real}=Int64,
allownan=true,
null=nothing) where {T<:AbstractDict}
Parses JSON from the given IO stream into corresponding Julia types.
Expand Down

0 comments on commit de16550

Please sign in to comment.