Skip to content

Commit

Permalink
Doctest example for eof (#46012)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt authored Jul 13, 2022
1 parent 9edac22 commit c1d21e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions base/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,19 @@ function will block to wait for more data if necessary, and then return `false`.
it is always safe to read one byte after seeing `eof` return `false`. `eof` will return
`false` as long as buffered data is still available, even if the remote end of a connection
is closed.
# Examples
```jldoctest
julia> b = IOBuffer("my buffer");
julia> eof(b)
false
julia> seekend(b);
julia> eof(b)
true
```
"""
function eof end

Expand Down

0 comments on commit c1d21e1

Please sign in to comment.