From 6f296906d8443ba83742e6050de78389d38bfdd7 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki <40514306+aviatesk@users.noreply.github.com> Date: Mon, 2 Aug 2021 22:43:23 +0900 Subject: [PATCH] make sure to use `io` passed to `UndefVarError_hint` (#41757) --- stdlib/REPL/src/REPLCompletions.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/REPL/src/REPLCompletions.jl b/stdlib/REPL/src/REPLCompletions.jl index 44b3e6a3a4158..6c0a7b0a87186 100644 --- a/stdlib/REPL/src/REPLCompletions.jl +++ b/stdlib/REPL/src/REPLCompletions.jl @@ -828,9 +828,9 @@ end function UndefVarError_hint(io::IO, ex::UndefVarError) var = ex.var if var === :or - print("\nsuggestion: Use `||` for short-circuiting boolean OR.") + print(io, "\nsuggestion: Use `||` for short-circuiting boolean OR.") elseif var === :and - print("\nsuggestion: Use `&&` for short-circuiting boolean AND.") + print(io, "\nsuggestion: Use `&&` for short-circuiting boolean AND.") end end