Skip to content

Commit 952a561

Browse files
committed
[Typechecker] Fix typo and update comment in SelfAccessKindRequest::evaluate
1 parent fe14b0f commit 952a561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,8 +2092,8 @@ SelfAccessKindRequest::evaluate(Evaluator &evaluator, FuncDecl *FD) const {
20922092
if (FD->getAttrs().getAttribute<MutatingAttr>(true)) {
20932093
if (!FD->isInstanceMember() || !FD->getDeclContext()->hasValueSemantics()) {
20942094
// If this decl is on a class-constrained protocol extension, then
2095-
// the respect the explicit mutatingness. Otherwise, we would throw an
2096-
// error and break source compatibility.
2095+
// respect the explicit mutatingness. Otherwise, we would throw an
2096+
// error.
20972097
if (FD->getDeclContext()->isClassConstrainedProtocolExtension())
20982098
return SelfAccessKind::Mutating;
20992099
return SelfAccessKind::NonMutating;

0 commit comments

Comments
 (0)