Skip to content

Commit

Permalink
Fix typo in flow spread operator error [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism authored and danez committed May 10, 2017
1 parent b98f463 commit 1077a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/flow.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion 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)"
}

0 comments on commit 1077a73

Please sign in to comment.