Skip to content

Commit

Permalink
fix var name in reseteof(s::BufferStream) (#54859)
Browse files Browse the repository at this point in the history
Evidently not covered by tests etc. (yet)

(cherry picked from commit 3de5e5d)
  • Loading branch information
IanButterworth authored and KristofferC committed Jun 22, 2024
1 parent 83ff230 commit 46d0705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ end

skip(s::BufferStream, n) = skip(s.buffer, n)

function reseteof(x::BufferStream)
function reseteof(s::BufferStream)
lock(s.cond) do
s.status = StatusOpen
nothing
Expand Down
1 change: 1 addition & 0 deletions test/iobuffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ end
c = zeros(UInt8,8)
@test bytesavailable(bstream) == 8
@test !eof(bstream)
@test Base.reseteof(bstream) === nothing # TODO: Actually test intended effect
read!(bstream,c)
@test c == a[3:10]
@test closewrite(bstream) === nothing
Expand Down

0 comments on commit 46d0705

Please sign in to comment.