Skip to content

Commit

Permalink
docs(linter): fix incorrect "bad" example in only-used-in-recursion
Browse files Browse the repository at this point in the history
closes #4811
  • Loading branch information
Boshen committed Sep 24, 2024
1 parent 539751c commit c9820da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ declare_oxc_lint!(
///
/// Examples of **incorrect** code for this rule:
/// ```ts
/// function f(a: number, b: number): number {
/// if (a == 0) {
/// return 1
/// } else {
/// return f(a - 1, b + 1)
/// }
/// function test(only_used_in_recursion) {
/// return test(only_used_in_recursion);
/// }
/// ```
///
Expand Down

0 comments on commit c9820da

Please sign in to comment.