From f5ec26b6901d45c2437d4627a5a49e83ee35452e Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:28:42 +0000 Subject: [PATCH] refactor(ast): fix misspelling (#12055) Fix a small typo. `paren` not `paran`. --- crates/oxc_ast/src/ast_impl/js.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_ast/src/ast_impl/js.rs b/crates/oxc_ast/src/ast_impl/js.rs index d6a47fbe6f418..d45871558e405 100644 --- a/crates/oxc_ast/src/ast_impl/js.rs +++ b/crates/oxc_ast/src/ast_impl/js.rs @@ -163,8 +163,8 @@ impl<'a> Expression<'a> { /// Remove nested parentheses from this expression. pub fn without_parentheses(&self) -> &Self { let mut expr = self; - while let Expression::ParenthesizedExpression(paran_expr) = expr { - expr = ¶n_expr.expression; + while let Expression::ParenthesizedExpression(paren_expr) = expr { + expr = &paren_expr.expression; } expr }