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)" }