From 17719e85ff1d4f05e6df257c9a3f787c055c8ef9 Mon Sep 17 00:00:00 2001 From: Jason Freeman Date: Wed, 25 Mar 2015 19:06:34 -0700 Subject: [PATCH] Fix comment to be more accurate --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 844589ee851..c1f729574eb 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -2169,7 +2169,7 @@ module ts { // function fun(...[a, ...b]) { } // // Normally, in ES6, the implied type of an array binding pattern with a rest element is - // an iterable. However, there is a requirement in our grammar checker that all rest + // an iterable. However, there is a requirement in our type system that all rest // parameters be array types. To satisfy this, we have an exception to the rule that // says the type of an array binding pattern with a rest element is an array type // if it is *itself* in a rest parameter. It will still be compatible with a spreaded