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.`
This commit is contained in:
_Kerman 2024-10-22 18:05:45 +08:00 committed by GitHub
parent eac34b676f
commit c916505c42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1344,7 +1344,7 @@ impl<'a> ClassElement<'a> {
matches!(self, Self::StaticBlock(_)) 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. /// static modifier.
pub fn r#static(&self) -> bool { pub fn r#static(&self) -> bool {
match self { match self {