Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5d00f5

Browse files
authored
docs(eslint-plugin): fix typo in example codeFix typo in example code (typescript-eslint#4319)
1 parent 2788545 commit b5d00f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-plugin/docs/rules/no-unsafe-argument.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Examples of code for this rule:
1616
### ❌ Incorrect
1717

1818
```ts
19-
declare function foo(arg1: string, arg2: number, arg2: string): void;
19+
declare function foo(arg1: string, arg2: number, arg3: string): void;
2020

2121
const anyTyped = 1 as any;
2222

@@ -43,7 +43,7 @@ foo(new Set<any>(), new Map<any, string>());
4343
### ✅ Correct
4444

4545
```ts
46-
declare function foo(arg1: string, arg2: number, arg2: string): void;
46+
declare function foo(arg1: string, arg2: number, arg3: string): void;
4747

4848
foo('a', 1, 'b');
4949

0 commit comments

Comments
 (0)