Skip to content

Commit

Permalink
Update base/io.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 14, 2023
1 parent 10c0ba6 commit 6a4543e
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 @@ -1393,7 +1393,7 @@ julia> String(readavailable(buf))
function skipchars(predicate, io::IO; linecomment=nothing)
for c in readeach(io, Char)
if c === linecomment
copyline(devnull, io, keep=true)
copyline(devnull, io, keep=true) # like readline(io), but doesn't allocate
elseif !predicate(c)
skip(io, -ncodeunits(c))
break
Expand Down

0 comments on commit 6a4543e

Please sign in to comment.