Skip to content

Commit

Permalink
Mention ?"..." help mode search in apropos docstring, fixes JuliaLang…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cthulhoni committed Oct 22, 2021
1 parent 609a4a0 commit 59aa3ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stdlib/REPL/src/docview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,11 @@ stripmd(x::Markdown.Table) =
Search available docstrings for entries containing `pattern`.
When `pattern` is a string, case is ignored. Results are printed to `io`.
`apropos` can be called from the help mode in the REPL by wrapping the query in double quotes:
```
help?> "pattern"
```
"""
apropos(string) = apropos(stdout, string)
apropos(io::IO, string) = apropos(io, Regex("\\Q$string", "i"))
Expand Down

0 comments on commit 59aa3ed

Please sign in to comment.