Skip to content

Commit

Permalink
docs(ast): fix comment of ClassElement::r#static (#6731)
Browse files Browse the repository at this point in the history
The comment says: `Returns true if this ClassElement is a static block
or has a static modifier.`
  • Loading branch information
KermanX authored Oct 22, 2024
1 parent eac34b6 commit c916505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/ast_impl/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c916505

Please sign in to comment.