Skip to content

Commit f5ec26b

Browse files
committed
refactor(ast): fix misspelling (#12055)
Fix a small typo. `paren` not `paran`.
1 parent f7d998b commit f5ec26b

File tree

1 file changed

+2
-2
lines changed
  • crates/oxc_ast/src/ast_impl

1 file changed

+2
-2
lines changed

crates/oxc_ast/src/ast_impl/js.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ impl<'a> Expression<'a> {
163163
/// Remove nested parentheses from this expression.
164164
pub fn without_parentheses(&self) -> &Self {
165165
let mut expr = self;
166-
while let Expression::ParenthesizedExpression(paran_expr) = expr {
167-
expr = &paran_expr.expression;
166+
while let Expression::ParenthesizedExpression(paren_expr) = expr {
167+
expr = &paren_expr.expression;
168168
}
169169
expr
170170
}

0 commit comments

Comments
 (0)