[poincare/multiplication] Fix comment

This commit is contained in:
Léa Saviot
2020-06-04 11:58:20 +02:00
committed by Émilie Feral
parent 72e342e1b1
commit 49e4abb964

View File

@@ -697,7 +697,7 @@ Expression Multiplication::privateShallowReduce(ExpressionNode::ReductionContext
shouldExpand = false;
} else if (c.type() != ExpressionNode::Type::Rational) {
} else if (static_cast<const Rational &>(c).isZero()) {
// Check that other children don't match inf or unit
// Check that other children don't match inf or matrix
if (!recursivelyMatches([](const Expression e, Context * context) { return IsInfinity(e, context) || IsMatrix(e, context); }, context)) {
replaceWithInPlace(c);
return c;