From 4819ce70e49e0441a9530327f1e86333ba15409f Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Wed, 17 Feb 2021 02:35:58 +0900 Subject: [PATCH] refactor: fix typo in error.js (#12808) postion -> position --- packages/babel-parser/src/parser/error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-parser/src/parser/error.js b/packages/babel-parser/src/parser/error.js index 0de72f4910e9..ead11e796bb0 100644 --- a/packages/babel-parser/src/parser/error.js +++ b/packages/babel-parser/src/parser/error.js @@ -42,7 +42,7 @@ export default class ParserError extends CommentsParser { } /** - * Raise a parsing error on given postion pos. If errorRecovery is true, + * Raise a parsing error on given position pos. If errorRecovery is true, * it will first search current errors and overwrite the error thrown on the exact * position before with the new error message. If errorRecovery is false, it * fallbacks to `raise`.