Skip to content

Commit

Permalink
Add show_supertypes in type help
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Apr 22, 2017
1 parent d24238d commit acc6d2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions base/docs/Docs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,13 @@ function summarize(io::IO, T::DataType, binding)
end
println(io, "```")
end
if T != Any
println(io, "**Supertype Hierarchy:**")
println(io, "```")
Base.show_supertypes(io, T)
println(io)
println(io, "```")
end
end

function summarize(io::IO, m::Module, binding)
Expand Down

0 comments on commit acc6d2b

Please sign in to comment.