Skip to content

Commit

Permalink
Limit number of subtypes shown in type help
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Apr 22, 2017
1 parent acc6d2b commit f6825e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/docs/Docs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,11 @@ function summarize(io::IO, T::DataType, binding)
if !isempty(subtypes(T))
println(io, "**Subtypes:**")
println(io, "```")
for t in subtypes(T)
sub_types = subtypes(T)
for t in Iterators.take(sub_types, 20)
println(io, t)
end
length(sub_types) > 20 && println(io, "...")
println(io, "```")
end
if T != Any
Expand Down

0 comments on commit f6825e9

Please sign in to comment.