Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Sep 18, 2021
1 parent 95c9b7a commit 2a24c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ function iterate(r::Iterators.Reverse{<:EachLine})
# chunks = circular buffer of 4kiB blocks read from end of stream
chunks = empty!(Vector{Vector{UInt8}}(undef, 2)) # allocate space for 2 buffers (common case)
inewline = jnewline = 0
while p > 0 && inewline > 0 # read chunks until we find a newline or we read whole file
while p > 0 && inewline == 0 # read chunks until we find a newline or we read whole file
chunk = Vector{UInt8}(undef, min(4096, p))
p -= length(chunk)
readbytes!(seek(r.itr.stream, p), chunk)
Expand Down

0 comments on commit 2a24c52

Please sign in to comment.