From 4517d61f10b6dcd49c2838557ac745b2aadf907e Mon Sep 17 00:00:00 2001 From: tiaoxizhan Date: Fri, 13 Sep 2024 02:37:24 +0800 Subject: [PATCH] chore: fix docs comments (#3857) Signed-off-by: tiaoxizhan --- .../src/js/bindings/constructor_parameters.rs | 2 +- .../src/js/classes/static_initialization_block_class_member.rs | 2 +- crates/biome_js_formatter/src/ts/lists/type_parameter_list.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/biome_js_formatter/src/js/bindings/constructor_parameters.rs b/crates/biome_js_formatter/src/js/bindings/constructor_parameters.rs index 8bf4dbe9e5d1..2705aacc1b8d 100644 --- a/crates/biome_js_formatter/src/js/bindings/constructor_parameters.rs +++ b/crates/biome_js_formatter/src/js/bindings/constructor_parameters.rs @@ -16,7 +16,7 @@ impl FormatNodeRule for FormatJsConstructorParameters { _: &JsConstructorParameters, _: &mut JsFormatter, ) -> FormatResult<()> { - // Formatted inside of `FormatJsAnyParameters + // Formatted inside of `FormatJsAnyParameters` Ok(()) } } diff --git a/crates/biome_js_formatter/src/js/classes/static_initialization_block_class_member.rs b/crates/biome_js_formatter/src/js/classes/static_initialization_block_class_member.rs index 21f37eac6f3c..5307088fb6ac 100644 --- a/crates/biome_js_formatter/src/js/classes/static_initialization_block_class_member.rs +++ b/crates/biome_js_formatter/src/js/classes/static_initialization_block_class_member.rs @@ -41,7 +41,7 @@ impl FormatNodeRule _: &JsStaticInitializationBlockClassMember, _: &mut JsFormatter, ) -> FormatResult<()> { - // Formatted inside of `fmt_fields + // Formatted inside of `fmt_fields` Ok(()) } } diff --git a/crates/biome_js_formatter/src/ts/lists/type_parameter_list.rs b/crates/biome_js_formatter/src/ts/lists/type_parameter_list.rs index bbd0b2a4e3b5..8db1c79c6f74 100644 --- a/crates/biome_js_formatter/src/ts/lists/type_parameter_list.rs +++ b/crates/biome_js_formatter/src/ts/lists/type_parameter_list.rs @@ -20,7 +20,7 @@ impl FormatRule for FormatTsTypeParameterList { && !f.options().source_type().variant().is_standard() && node.syntax().grand_parent().kind() == Some(JsSyntaxKind::JS_ARROW_FUNCTION_EXPRESSION) - // Ignore Type parameter with an `extends`` clause or a default type. + // Ignore Type parameter with an `extends` clause or a default type. && !node.first().and_then(|param| param.ok()) .is_some_and(|type_parameter| type_parameter.constraint().is_some() || type_parameter.default().is_some()) {