mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +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:
|
||||
/// ```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);
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
|
|
|
|||
Loading…
Reference in a new issue