Skip to content

Commit 65470e8

Browse files
committed
fix print_arg signature
1 parent a500879 commit 65470e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ end
422422
setargs(t, args) = Term{symtype(t)}(operation(t), args)
423423
cdrargs(args) = setargs(t, cdr(args))
424424

425-
print_arg(io, x::Union{Complex, Rational}) = print(io, "(", x, ")")
425+
print_arg(io, x::Union{Complex, Rational}; paren=true) = print(io, "(", x, ")")
426426
isbinop(f) = istree(f) && Base.isbinaryoperator(nameof(operation(f)))
427427
function print_arg(io, x; paren=false)
428428
if paren && isbinop(x)
@@ -431,7 +431,7 @@ function print_arg(io, x; paren=false)
431431
print(io, x)
432432
end
433433
end
434-
print_arg(io, s::String) = show(io, s)
434+
print_arg(io, s::String; paren=true) = show(io, s)
435435
function print_arg(io, f, x)
436436
f !== (*) && return print_arg(io, x)
437437
if Base.isbinaryoperator(nameof(f))

0 commit comments

Comments
 (0)