diff --git a/crates/biome_js_formatter/src/comments.rs b/crates/biome_js_formatter/src/comments.rs index cf384958a1f1..db7429917799 100644 --- a/crates/biome_js_formatter/src/comments.rs +++ b/crates/biome_js_formatter/src/comments.rs @@ -1256,7 +1256,8 @@ fn handle_import_export_specifier_comment( } } -/// Ensure that comments before the `async`` keyword are placed just before it. +/// Attach comments before the `async` keyword or `*` token to the preceding node if it exists +/// to ensure these comments are placed before the `async` keyword or `*` token. /// ```javascript /// class Foo { /// @decorator()