Skip to content

Commit 406b62b

Browse files
ledenisswyxio
andauthored
Fix missing parenthesis in troubleshooting types code example (#399)
Co-authored-by: swyx <[email protected]>
1 parent f5550fc commit 406b62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basic/troubleshooting/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ You can also assert a property is non-null, when accessing it:
138138

139139
```ts
140140
element.parentNode!.removeChild(element) // ! before the period
141-
myFunction(document.getElementById(dialog.id!)! // ! after the property accessing
141+
myFunction(document.getElementById(dialog.id!)!) // ! after the property accessing
142142
let userID!: string // definite assignment assertion... be careful!
143143
```
144144

0 commit comments

Comments
 (0)