Skip to content

Commit

Permalink
Add hint for :help to REPL.REPLCompletions.UndefVarError_hint (#41754)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti authored Aug 14, 2021
1 parent 19629d7 commit 8cad32b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,10 @@ function UndefVarError_hint(io::IO, ex::UndefVarError)
print(io, "\nsuggestion: Use `||` for short-circuiting boolean OR.")
elseif var === :and
print(io, "\nsuggestion: Use `&&` for short-circuiting boolean AND.")
elseif var === :help
println(io)
# Show friendly help message when user types help or help() and help is undefined
show(io, MIME("text/plain"), Base.Docs.parsedoc(Base.Docs.keywords[:help]))
end
end

Expand Down

2 comments on commit 8cad32b

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your package evaluation job has completed - possible new issues were detected. A full report can be found here.

Please sign in to comment.