From 349bee1be7742c0da79cdcac5888cc6837af9b93 Mon Sep 17 00:00:00 2001 From: Zheyu Zhang Date: Fri, 12 Jan 2024 13:23:56 +0800 Subject: [PATCH] update comments --- crates/biome_js_formatter/src/comments.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()