docs(linter): fix incorrect "bad" example in only-used-in-recursion (#6029)

closes #4811
This commit is contained in:
Boshen 2024-09-24 14:47:41 +00:00
parent e0a895962d
commit 21cdb784d6

View file

@ -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);
/// }
/// ```
///