Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnemecek committed May 16, 2020
1 parent 055dedf commit 8176636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl ops::Mul<Number> for Number {

fn mul(self, rhs: Self) -> Self {
match (self, rhs) {
(Number::Defined(l), Number::Defined(r)) => Number::Defined(l + r),
(Number::Defined(l), Number::Defined(r)) => Number::Defined(l * r),
(Number::Defined(_), _) => self,
_ => Number::Undefined,
}
Expand Down

0 comments on commit 8176636

Please sign in to comment.