Skip to content

Commit 17719e8

Browse files
committed
Fix comment to be more accurate
1 parent 197a42a commit 17719e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2169,7 +2169,7 @@ module ts {
21692169
// function fun(...[a, ...b]) { }
21702170
//
21712171
// Normally, in ES6, the implied type of an array binding pattern with a rest element is
2172-
// an iterable. However, there is a requirement in our grammar checker that all rest
2172+
// an iterable. However, there is a requirement in our type system that all rest
21732173
// parameters be array types. To satisfy this, we have an exception to the rule that
21742174
// says the type of an array binding pattern with a rest element is an array type
21752175
// if it is *itself* in a rest parameter. It will still be compatible with a spreaded

0 commit comments

Comments
 (0)