@@ -53,7 +53,7 @@ static ValueDecl *findReferencedDecl(Expr *expr, SourceLoc &loc) {
5353}
5454
5555// / \brief Return 'true' if the decl in question refers to an operator that
56- // / could be added to the global scope via a delayed protcol conformance.
56+ // / could be added to the global scope via a delayed protocol conformance.
5757// / Currently, this is only true for '==', which is added via an Equatable
5858// / conformance.
5959static bool isDelayedOperatorDecl (ValueDecl *vd) {
@@ -337,7 +337,7 @@ namespace {
337337 // / of the overload set and call arguments.
338338 // /
339339 // / \param expr The application.
340- // / \param isFavored Determine wheth the given overload is favored.
340+ // / \param isFavored Determine whether the given overload is favored.
341341 // / \param createReplacements If provided, a function that creates a set of
342342 // / replacement fallback constraints.
343343 // / \param mustConsider If provided, a function to detect the presence of
@@ -2664,7 +2664,7 @@ Expr *ConstraintSystem::generateConstraints(Expr *expr) {
26642664 // Remove implicit conversions from the expression.
26652665 expr = expr->walk (SanitizeExpr (getTypeChecker ()));
26662666
2667- // Wall the expression to associate labeled argumets .
2667+ // Wall the expression to associate labeled arguments .
26682668 expr->walk (ArgumentLabelWalker (*this , expr));
26692669
26702670 // Walk the expression, generating constraints.
@@ -2740,7 +2740,7 @@ class InferUnresolvedMemberConstraintGenerator : public ConstraintGenerator {
27402740 return ConstraintGenerator::visitUnresolvedMemberExpr (Expr);
27412741 }
27422742 // Otherwise, create a type variable saying we know nothing about this expr.
2743- assert (!VT && " cannot reassign type viriable ." );
2743+ assert (!VT && " cannot reassign type variable ." );
27442744 return VT = createFreeTypeVariableType (Expr);
27452745 }
27462746
@@ -2750,7 +2750,7 @@ class InferUnresolvedMemberConstraintGenerator : public ConstraintGenerator {
27502750 return ConstraintGenerator::visitParenExpr (Expr);
27512751 }
27522752 // Otherwise, create a type variable saying we know nothing about this expr.
2753- assert (!VT && " cannot reassign type viriable ." );
2753+ assert (!VT && " cannot reassign type variable ." );
27542754 return VT = createFreeTypeVariableType (Expr);
27552755 }
27562756
@@ -2760,7 +2760,7 @@ class InferUnresolvedMemberConstraintGenerator : public ConstraintGenerator {
27602760 return ConstraintGenerator::visitTupleExpr (Expr);
27612761 }
27622762 // Otherwise, create a type variable saying we know nothing about this expr.
2763- assert (!VT && " cannot reassign type viriable ." );
2763+ assert (!VT && " cannot reassign type variable ." );
27642764 return VT = createFreeTypeVariableType (Expr);
27652765 }
27662766
0 commit comments