Skip to content

Commit 0782413

Browse files
committed
better parens
1 parent 52dc92c commit 0782413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function Base.show(io::IOContext, t::Term)
272272
else
273273
f = operation(t)
274274
fname = nameof(f)
275-
binary = fname in [:+, :-, :*, :/, :^]
275+
binary = Base.isbinaryoperator(fname)
276276
color = get(io, :withcolor, :white)
277277

278278
binary && Base.printstyled(io, "(",color=color)

0 commit comments

Comments
 (0)