Remove comments
This commit is contained in:
parent
4ac7e74c6b
commit
6ee30b867f
@ -285,22 +285,10 @@ fn evaluate_node(ast_node: &AstNode) -> Result<Number, String> {
|
|||||||
match operator {
|
match operator {
|
||||||
Plus => Ok(add(left, right)?),
|
Plus => Ok(add(left, right)?),
|
||||||
Minus => Ok(subtract(left, right)?),
|
Minus => Ok(subtract(left, right)?),
|
||||||
Multiply => {
|
Multiply => Ok(multiply(left, right)?),
|
||||||
Ok(multiply(left, right)?)
|
Divide => Ok(divide(left, right)?),
|
||||||
// }
|
Modulo => Ok(modulo(left, right)?),
|
||||||
}
|
Caret => Ok(pow(left, right)?),
|
||||||
Divide => {
|
|
||||||
Ok(divide(left, right)?)
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
Modulo => {
|
|
||||||
Ok(modulo(left, right)?)
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
Caret => {
|
|
||||||
Ok(pow(left, right)?)
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
_ => Err(format!("Unexpected operator {:?}", operator)),
|
_ => Err(format!("Unexpected operator {:?}", operator)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user