diff --git a/base/docs/Docs.jl b/base/docs/Docs.jl index fd2ea6c0598e01..1f13fcdbc91c21 100644 --- a/base/docs/Docs.jl +++ b/base/docs/Docs.jl @@ -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