From 7f3129efd108d4926c95549e77752de17ae5bef2 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Tue, 20 Aug 2024 11:56:29 +0000 Subject: [PATCH] fix(ast): correct code comment (#5004) Comment showing macro expansion did not match the actual macro output. --- crates/oxc_ast/src/ast/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_ast/src/ast/macros.rs b/crates/oxc_ast/src/ast/macros.rs index 4febf1c820e87..0af8fd88266be 100644 --- a/crates/oxc_ast/src/ast/macros.rs +++ b/crates/oxc_ast/src/ast/macros.rs @@ -799,7 +799,7 @@ pub(crate) use inherit_variants; /// /// # Panic /// /// Panics if not convertible. /// #[inline] -/// pub fn to_declaration_mut(&mut self) -> Option<&mut Declaration<'a>> { +/// pub fn to_declaration_mut(&mut self) -> &mut Declaration<'a> { /// self.as_declaration_mut().unwrap() /// } /// }