Skip to content

Commit 48572ae

Browse files
committed
Add parentheses around element-wise divisions
1 parent 88ff89d commit 48572ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/stdstr.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ function parenthesize(f, arg::ir.HadamardProduct)
8383
return "(" * f(arg.l) * "" * f(arg.r) * ")"
8484
end
8585

86+
function parenthesize(f, arg::ir.Quotient)
87+
return "(" * f(arg) * ")"
88+
end
89+
8690
function parenthesize(f, arg)
8791
return f(arg)
8892
end

0 commit comments

Comments
 (0)