Skip to content

Commit 70d583e

Browse files
[TypeChecker] Fixing typos from previous patch
1 parent 0d44dad commit 70d583e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3357,7 +3357,7 @@ CheckedCastKind TypeChecker::typeCheckCheckedCast(Type fromType,
33573357
const auto &fromElt = fromTuple->getElement(i);
33583358
const auto &toElt = toTuple->getElement(i);
33593359

3360-
// We should only perform name validation if both element have a label,
3360+
// We should only perform name validation if both elements have a label,
33613361
// because unlabeled tuple elements can be converted to labeled ones
33623362
// e.g.
33633363
//

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4548,7 +4548,7 @@ TypeChecker::couldDynamicallyConformToProtocol(Type type, ProtocolDecl *Proto,
45484548

45494549
ModuleDecl *M = DC->getParentModule();
45504550
// For standard library collection types such as Array, Set or Dictionary
4551-
// which have custom casting machinery implemented in situations like:
4551+
// which have custom casting machinery implemented for situations like:
45524552
//
45534553
// func encodable(_ value: Encodable) {
45544554
// _ = value as! [String : Encodable]

0 commit comments

Comments
 (0)