Update lib/Sema/CSSimplify.cpp

Co-authored-by: Guillaume Lessard <glessard@tffenterprises.com>
This commit is contained in:
Alejandro Alonso
2025-02-11 13:34:05 -08:00
committed by GitHub
parent a1b591cf0a
commit 4a8d4d271a

View File

@@ -8709,7 +8709,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyConformsToConstraint(
auto anchor = loc->getAnchor();
auto arrayLiteral = getAsExpr<ArrayExpr>(anchor);
// If we're attempting to bind an array literal to a n'InlineArray'
// If we're attempting to bind an array literal to an 'InlineArray'
// parameter, then check if the counts are equal and solve.
if (kind == ConstraintKind::LiteralConformsTo &&
protocol == arrayLiteralProto &&