From 1077a7304ea923510e37744a2fba99fad2ae0d11 Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Mon, 10 Apr 2017 10:48:51 -0500 Subject: [PATCH] Fix typo in flow spread operator error [skip ci] --- src/plugins/flow.js | 2 +- test/fixtures/flow/type-annotations/137/options.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/flow.js b/src/plugins/flow.js index 8b63c97207..eac336b2d2 100644 --- a/src/plugins/flow.js +++ b/src/plugins/flow.js @@ -451,7 +451,7 @@ pp.flowParseObjectType = function (allowStatic, allowExact, allowSpread) { if (!allowSpread) { this.unexpected( null, - "Spread operator cannnot appear in class or interface definitions" + "Spread operator cannot appear in class or interface definitions" ); } if (variance) { diff --git a/test/fixtures/flow/type-annotations/137/options.json b/test/fixtures/flow/type-annotations/137/options.json index 79756f8c33..786acad32a 100644 --- a/test/fixtures/flow/type-annotations/137/options.json +++ b/test/fixtures/flow/type-annotations/137/options.json @@ -1,3 +1,3 @@ { - "throws": "Spread operator cannnot appear in class or interface definitions (2:1)" + "throws": "Spread operator cannot appear in class or interface definitions (2:1)" }