We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9f5298c + 662acb5 commit cda830fCopy full SHA for cda830f
src/types.jl
@@ -780,8 +780,11 @@ end
780
781
function show_call(io, f, args)
782
fname = istree(f) ? Symbol(repr(f)) : nameof(f)
783
- binary = Base.isbinaryoperator(fname) && length(args) > 1
784
- if binary
+ len_args = length(args)
+ if Base.isunaryoperator(fname) && len_args == 1
785
+ print(io, "$fname")
786
+ print_arg(io, first(args), paren=true)
787
+ elseif Base.isbinaryoperator(fname) && len_args > 1
788
for (i, t) in enumerate(args)
789
i != 1 && print(io, " $fname ")
790
print_arg(io, t, paren=true)
0 commit comments