summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dhall_core/src/printer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall_core/src/printer.rs b/dhall_core/src/printer.rs
index aa9f707..9525904 100644
--- a/dhall_core/src/printer.rs
+++ b/dhall_core/src/printer.rs
@@ -139,7 +139,7 @@ impl<S, A: Display> Expr<S, A> {
}
Expr::BinOp(op, a, b) => {
// Precedence is magically handled by the ordering of BinOps.
- if phase >= PrintPhase::BinOp(*op) {
+ if phase > PrintPhase::BinOp(*op) {
return self.fmt_phase(f, Paren);
}
a.fmt_phase(f, PrintPhase::BinOp(*op))?;