Skip to content

Commit

Permalink
Merge pull request #28 from GuillaumeGomez/subtract
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 16, 2021
2 parents f617e45 + 17df391 commit aaf6759
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,7 @@ impl<'a> Generator<'a> {
let e2 = self.expr2str(e2);
match op.node {
ast::BinOpKind::Add => format!("{} + {}", e1, e2),
ast::BinOpKind::Sub => format!("{} - {}", e1, e2),
_ => panic!("unknown op: {:?}", op),
}
}
Expand Down

0 comments on commit aaf6759

Please sign in to comment.