Skip to content

Commit

Permalink
refactor: fix typo in error.js (#12808)
Browse files Browse the repository at this point in the history
postion -> position
  • Loading branch information
eltociear committed Feb 16, 2021
1 parent c22e72e commit 4819ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/error.js
Expand Up @@ -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`.
Expand Down

0 comments on commit 4819ce7

Please sign in to comment.