Skip to content

Commit 03ec87f

Browse files
authored
Adds method to summary() for functions (#39173)
1 parent 28e63dc commit 03ec87f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/show.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,6 +2769,9 @@ function array_summary(io::IO, a, inds)
27692769
print(io, " with indices ", inds2string(inds))
27702770
end
27712771

2772+
## `summary` for Function
2773+
summary(io::IO, f::Function) = show(io, MIME"text/plain"(), f)
2774+
27722775
"""
27732776
showarg(io::IO, x, toplevel)
27742777

0 commit comments

Comments
 (0)