Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaykdm committed Sep 21, 2024
1 parent c3d3fe1 commit 55c3072
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ impl Rule for UseExplicitFunctionReturnType {

/**
* Checks if an arrow function immediately returns a `as const` value.
* ```
* const func = (value: number) => ({ foo: 'bar', value }) as const;
* const func = () => x as const;
* ```
*/
fn is_direct_const_assertion_in_arrow_functions(func: &AnyJsFunction) -> bool {
let AnyJsFunction::JsArrowFunctionExpression(arrow_func) = func else {
Expand Down

0 comments on commit 55c3072

Please sign in to comment.