Skip to content

Commit

Permalink
make sure to use io passed to UndefVarError_hint (#41757)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Aug 2, 2021
1 parent 4c3829d commit 6f29690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6f29690

Please sign in to comment.