Skip to content

Commit 7d9c88d

Browse files
committed
update comment for "constructor" -> "init" syntax change.
Swift SVN r10931
1 parent cd59522 commit 7d9c88d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/swift/AST/Expr.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,9 +2605,10 @@ class CoerceExpr : public ExplicitCastExpr {
26052605
/// to another constructor. The result of the subexpression is assigned to
26062606
/// 'self', and the expression returns void.
26072607
///
2608-
/// When a super.constructor or delegating constructor is invoked, 'self' is
2609-
/// reassigned to the result of the constructor (after being downcast in the
2610-
/// case of super.constructor).
2608+
/// When a super.init or delegating initializer is invoked, 'self' is
2609+
/// reassigned to the result of the initializer (after being downcast in the
2610+
/// case of super.init).
2611+
///
26112612
/// This is needed for reference types with ObjC interop, where
26122613
/// reassigning 'self' is a supported feature, and for value type delegating
26132614
/// constructors, where the delegatee constructor is responsible for

0 commit comments

Comments
 (0)