From 3dca95ea21a41f6afeb8238986d1a9dfe9631a26 Mon Sep 17 00:00:00 2001 From: Nathan Zimmerberg <39104088+nhz2@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:22:03 -0400 Subject: [PATCH] Update `Base.peek` docstring 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 https://github.com/JuliaLang/julia/issues/54749 --- src/parse_stream.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_stream.jl b/src/parse_stream.jl index dcbb52af..412d02b4 100644 --- a/src/parse_stream.jl +++ b/src/parse_stream.jl @@ -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