Skip to content

Commit d57b285

Browse files
committed
fix getindex printing
1 parent 30de48d commit d57b285

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,13 @@ function show_ref(io, f, args)
518518
x = args[1]
519519
idx = args[2:end]
520520

521+
istree(x) && print(io, "(")
521522
print(io, x)
523+
istree(x) && print(io, ")")
522524
print(io, "[")
523525
for i=1:length(idx)
524526
print_arg(io, idx[i])
525-
if i!=length(idx)
526-
print(io, ", ")
527-
end
527+
i != length(idx) && print(io, ", ")
528528
end
529529
print(io, "]")
530530
end

0 commit comments

Comments
 (0)