Skip to content

Commit 9461ca6

Browse files
authored
no-typeof-undefined: Fix typo in an example (#2716)
1 parent 540a4d4 commit 9461ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-typeof-undefined.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if (typeof foo.bar !== 'undefined') {}
2929

3030
```js
3131
function foo(bar) {
32-
if (foo === undefined) {}
32+
if (bar === undefined) {}
3333
}
3434
```
3535

0 commit comments

Comments
 (0)