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)
  • Loading branch information
IanButterworth authored Jun 21, 2024
1 parent a1a2ac6 commit 3de5e5d
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 @@ -1605,7 +1605,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 3de5e5d

Please sign in to comment.