mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
docs(linter): fix incorrect "bad" example in only-used-in-recursion (#6029)
closes #4811
This commit is contained in:
parent
e0a895962d
commit
21cdb784d6
1 changed files with 2 additions and 6 deletions
|
|
@ -40,12 +40,8 @@ declare_oxc_lint!(
|
||||||
///
|
///
|
||||||
/// Examples of **incorrect** code for this rule:
|
/// Examples of **incorrect** code for this rule:
|
||||||
/// ```ts
|
/// ```ts
|
||||||
/// function f(a: number, b: number): number {
|
/// function test(only_used_in_recursion) {
|
||||||
/// if (a == 0) {
|
/// return test(only_used_in_recursion);
|
||||||
/// return 1
|
|
||||||
/// } else {
|
|
||||||
/// return f(a - 1, b + 1)
|
|
||||||
/// }
|
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue