Skip to content

Commit 155b96c

Browse files
authored
Merge pull request #75066 from gottesmm/pr-8e9c2a97ead9d09b46344ffaeaff678c568c3d49
Fix three typos in comments. NFC.
2 parents ad61e53 + 20acc50 commit 155b96c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/AST/ActorIsolation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class ActorIsolation {
180180
return parameterIndex;
181181
}
182182

183-
/// Returns true if this actor-instance isolation appllies to the self
183+
/// Returns true if this actor-instance isolation applies to the self
184184
/// parameter of a method.
185185
bool isActorInstanceForSelfParameter() const {
186186
return getActorInstanceParameter() == 0;

lib/SILOptimizer/Utils/SILIsolationInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ SILValue ActorInstance::lookThroughInsts(SILValue value) {
11671167
continue;
11681168
}
11691169

1170-
// Look Through extracting from optionals.
1170+
// Look through extracting from optionals.
11711171
if (auto *uedi = dyn_cast<UncheckedEnumDataInst>(svi)) {
11721172
if (uedi->getEnumDecl() ==
11731173
uedi->getFunction()->getASTContext().getOptionalDecl()) {
@@ -1176,7 +1176,7 @@ SILValue ActorInstance::lookThroughInsts(SILValue value) {
11761176
}
11771177
}
11781178

1179-
// Look Through wrapping in an enum.
1179+
// Look through wrapping in an optional.
11801180
if (auto *ei = dyn_cast<EnumInst>(svi)) {
11811181
if (ei->hasOperand()) {
11821182
if (ei->getElement()->getParentEnum() ==

0 commit comments

Comments
 (0)