Skip to content

Commit

Permalink
chore: fix docs comments (#3857)
Browse files Browse the repository at this point in the history
Signed-off-by: tiaoxizhan <tiaoxizhan@outlook.com>
  • Loading branch information
tiaoxizhan authored Sep 12, 2024
1 parent b260d5b commit 4517d61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl FormatNodeRule<JsConstructorParameters> for FormatJsConstructorParameters {
_: &JsConstructorParameters,
_: &mut JsFormatter,
) -> FormatResult<()> {
// Formatted inside of `FormatJsAnyParameters
// Formatted inside of `FormatJsAnyParameters`
Ok(())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl FormatNodeRule<JsStaticInitializationBlockClassMember>
_: &JsStaticInitializationBlockClassMember,
_: &mut JsFormatter,
) -> FormatResult<()> {
// Formatted inside of `fmt_fields
// Formatted inside of `fmt_fields`
Ok(())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl FormatRule<TsTypeParameterList> 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())
{
Expand Down

0 comments on commit 4517d61

Please sign in to comment.