Skip to content

Commit

Permalink
Lift fallback _trimdocs() to trimdocs()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmert committed Jun 12, 2020
1 parent ecb43e4 commit 2f7d3cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stdlib/REPL/src/docview.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ function Markdown.term(io::IO, msg::Message, columns)
printstyled(io, msg.msg; msg.fmt...)
end

function trimdocs(md, brief::Bool)
trimdocs(doc, brief::Bool) = doc

function trimdocs(md::Markdown.MD, brief::Bool)
brief || return md
md, trimmed = _trimdocs(md, brief)
if trimmed
Expand Down

0 comments on commit 2f7d3cf

Please sign in to comment.