Skip to content

Commit 4436e94

Browse files
committed
[NFC] fix a comment typo in LifetimeDependence
1 parent 3323d61 commit 4436e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/LifetimeDependence.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ class LifetimeDependenceChecker {
11321132
// The 'newValue' dependence kind must match the getter's dependence kind
11331133
// because generated the implementation '_modify' accessor composes the
11341134
// getter's result with the setter's 'newValue'. In particular, if the
1135-
// result type is non-Escapable then the setter must not depend on
1136-
// 'newValue'.
1135+
// result type is Escapable then the getter does not have any lifetime
1136+
// dependency, so the setter cannot depend on 'newValue'.
11371137
if (!paramTypeInContext->isEscapable()) {
11381138
targetDeps = std::move(targetDeps)
11391139
.add(newValIdx, LifetimeDependenceKind::Inherit);

0 commit comments

Comments
 (0)