Skip to content

Commit 6b3ed1d

Browse files
authored
docs: fixed typo "foo.property" (typescript-eslint#6180)
1 parent c943b84 commit 6b3ed1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-plugin/docs/rules/no-non-null-assertion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface Example {
2222
}
2323

2424
declare const example: Example;
25-
const includesBaz = foo.property!.includes('baz');
25+
const includesBaz = example.property!.includes('baz');
2626
```
2727

2828
### ✅ Correct
@@ -33,7 +33,7 @@ interface Example {
3333
}
3434

3535
declare const example: Example;
36-
const includesBaz = foo.property?.includes('baz') ?? false;
36+
const includesBaz = example.property?.includes('baz') ?? false;
3737
```
3838

3939
## When Not To Use It

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy