Skip to content

Commit ffff5b7

Browse files
author
Orta
authored
Merge pull request #217 from kyohei-shimada/add_missing_bracket
Add missing "}"
2 parents e0bbe6f + 5f9076b commit ffff5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

What's-new-in-TypeScript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ console.log(x! + x!);
21562156

21572157
function initialize() {
21582158
x = 10;
2159-
2159+
}
21602160
```
21612161

21622162
In our example, we knew that all uses of `x` would be initialized so it makes more sense to use definite assignment assertions than non-null assertions.

0 commit comments

Comments
 (0)