Skip to content

Commit f107cd0

Browse files
committed
AST: Fix outdated doc comment on PackExpansionTypeRepr
1 parent e0c341d commit f107cd0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

include/swift/AST/TypeRepr.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -724,20 +724,12 @@ class VarargTypeRepr final : public TypeRepr {
724724
friend class TypeRepr;
725725
};
726726

727-
/// A pack expansion 'T...' with a pattern 'T'.
727+
/// A pack expansion 'repeat T' with a pattern 'T'.
728728
///
729729
/// Can appear in the following positions:
730730
/// - The type of a parameter declaration in a function declaration
731731
/// - The type of a parameter in a function type
732732
/// - The element of a tuple
733-
///
734-
/// In the first two cases, it also spells an old-style variadic parameter
735-
/// desugaring to an array type. The two meanings are distinguished by the
736-
/// presence of at least one pack type parameter in the pack expansion
737-
/// pattern.
738-
///
739-
/// In the third case, tuples cannot contain an old-style variadic element,
740-
/// so the pack expansion must be a real variadic pack expansion.
741733
class PackExpansionTypeRepr final : public TypeRepr {
742734
SourceLoc RepeatLoc;
743735
TypeRepr *Pattern;

0 commit comments

Comments
 (0)