Corrected order of printing op and =

This commit is contained in:
fprasx 2022-08-08 11:05:18 -04:00
parent 49700e4636
commit e39918f553

View File

@ -111,10 +111,10 @@ impl fmt::Display for BinaryOp {
BinaryOp::ArithOp(op) => fmt::Display::fmt(op, f),
BinaryOp::CmpOp(op) => fmt::Display::fmt(op, f),
BinaryOp::Assignment { op } => {
f.write_str("=")?;
if let Some(op) = op {
fmt::Display::fmt(op, f)?;
}
f.write_str("=")?;
Ok(())
}
}