Skip to content

Commit 825c886

Browse files
authored
fix typo
number -> never
1 parent 05577a7 commit 825c886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/never.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let foo: never; // Okay
1818
However `never` *can only ever be assigned to another never*. e.g.
1919

2020
```ts
21-
let foo: never = 123; // Error: Type number is not assignable to number
21+
let foo: never = 123; // Error: Type number is not assignable to never
2222

2323
// Okay as the function's return type is `never`
2424
let bar: never = (() => { throw new Error('Throw my hands in the air like I just dont care') })();

0 commit comments

Comments
 (0)