Skip to content

Commit 35a0bfa

Browse files
committed
print fix
1 parent 20c63c4 commit 35a0bfa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ function show_term(io::IO, t)
363363
end
364364
get(io, :paren, false) && Base.print(io, ")")
365365
else
366-
Base.show(io, f)
366+
if f isa Sym
367+
Base.print(io, nameof(f))
368+
else
369+
Base.show(io, f)
370+
end
367371
Base.print(io, "(")
368372
for i=1:length(args)
369373
Base.print(IOContext(io, :paren => false), args[i])

0 commit comments

Comments
 (0)