Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix typo in 3.7 release notes
Browse files Browse the repository at this point in the history
For this sample comparing to type predicates:
```typescript
if (isString(str)) {
    return str.toUppercase();
}
```
I believe you meant to put the correct method `str.toUpperCase();`
  • Loading branch information
greg-murray-volusion authored Dec 28, 2019
1 parent 4c0b0a9 commit 8e42fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/release notes/TypeScript 3.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function isString(val: any): val is string {

function yell(str: any) {
if (isString(str)) {
return str.toUppercase();
return str.toUpperCase();
}
throw "Oops!";
}
Expand Down

0 comments on commit 8e42fc8

Please sign in to comment.