mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
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:
parent
eac34b676f
commit
c916505c42
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue