Skip to content

Commit

Permalink
Update packages/babel-traverse/src/path/family.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Ng <bng412@gmail.com>
  • Loading branch information
JLHwung and existentialism committed Apr 2, 2021
1 parent f761901 commit 01f68ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/path/family.ts
Expand Up @@ -90,7 +90,7 @@ function normalCompletionToBreak(completions: Completion[]) {
*
* @param {Completion[]} completions
* @param {boolean} reachable Whether the break statement is reachable after
we mark the noraml completions _before_ the given break completions as the final
we mark the normal completions _before_ the given break completions as the final
completions. For example,
`{ 0 }; break;` is transformed to `{ return 0 }; break;`, the `break` here is unreachable
and thus can be removed without consequences. We may in the future reserve them instead since
Expand Down

0 comments on commit 01f68ad

Please sign in to comment.