Skip to content

Commit

Permalink
Update Base.peek docstring
Browse files Browse the repository at this point in the history
When looking at the help for `peek` in the repl, the current docstring looks like it applies to all `IO`, so I added `::ParseStream` to make it more specific. See also JuliaLang/julia#54749
  • Loading branch information
nhz2 authored and c42f committed Jul 21, 2024
1 parent 34e9dbd commit 2ecad86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse_stream.jl
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ end
end

"""
peek(stream [, n=1]; skip_newlines=false)
peek(stream::ParseStream [, n=1]; skip_newlines=false)
Look ahead in the stream `n` tokens, returning the token kind. Comments and
non-newline whitespace are skipped automatically. Whitespace containing a
Expand Down

0 comments on commit 2ecad86

Please sign in to comment.