feat(types): remove some redundant parenthesis
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -22,10 +22,10 @@ impl Display for Expression {
|
||||
Expression::Number(num) => write!(f, "{}", num),
|
||||
Expression::Variable(var) => write!(f, "{}", var),
|
||||
Expression::Fraction(numerator, denominator) => {
|
||||
write!(f, "({}) / ({})", numerator, denominator)
|
||||
write!(f, "({} / {})", numerator, denominator)
|
||||
}
|
||||
Expression::Operation(operator, left, right) => {
|
||||
write!(f, "({}) {} ({})", left, operator, right)
|
||||
write!(f, "({} {} {})", left, operator, right)
|
||||
}
|
||||
Expression::Function(name, params) => {
|
||||
let params: String = params
|
||||
|
||||
Reference in new issue
Block a user