From c916505c42fea46c29b32789b8e8ae682f1e79a8 Mon Sep 17 00:00:00 2001 From: _Kerman Date: Tue, 22 Oct 2024 18:05:45 +0800 Subject: [PATCH] docs(ast): fix comment of `ClassElement::r#static` (#6731) The comment says: `Returns true if this ClassElement is a static block or has a static modifier.` --- crates/oxc_ast/src/ast_impl/js.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_ast/src/ast_impl/js.rs b/crates/oxc_ast/src/ast_impl/js.rs index 57b4166fdb7e7..892d30d48b405 100644 --- a/crates/oxc_ast/src/ast_impl/js.rs +++ b/crates/oxc_ast/src/ast_impl/js.rs @@ -1344,7 +1344,7 @@ impl<'a> ClassElement<'a> { matches!(self, Self::StaticBlock(_)) } - /// Returns `true` if this [`ClassElement`] is a static block or has a + /// Returns `true` if this [`ClassElement`] is a property and has a /// static modifier. pub fn r#static(&self) -> bool { match self {