Skip to content

Commit

Permalink
fxi
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jul 30, 2021
1 parent 26214af commit b422e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ byte before `to`. Bytes enclosed should all be ASCII characters.
float_from_bytes(bytes::MemoryParserState, from::Int, to::Int) = float_from_bytes(bytes.utf8, from, to)

function float_from_bytes(bytes::Union{String, Vector{UInt8}}, from::Int, to::Int)::Union{Float64,Nothing}
return Parsers.tryparse(Float64, bytes isa String ? SubString(bytes, from, to) : view(bytes, from, to))
return Parsers.tryparse(Float64, bytes isa String ? SubString(bytes, from:to) : view(bytes, from:to))
end

"""
Expand Down

0 comments on commit b422e58

Please sign in to comment.