Skip to content

Commit 8bbe3a6

Browse files
authored
Modify wording of never assignability
The original statement, "never can only ever be assigned to another never," implies the following is not allowed: ```ts let bar: never; let foo: number = bar // statement implies this is not allowed ```
1 parent e734f51 commit 8bbe3a6

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
@@ -15,7 +15,7 @@ Of course you can use this annotation yourself as well
1515
let foo: never; // Okay
1616
```
1717

18-
However, `never` *can only ever be assigned to another never*. e.g.
18+
However, *only `never` can be assigned to another never*. e.g.
1919

2020
```ts
2121
let foo: never = 123; // Error: Type number is not assignable to never

0 commit comments

Comments
 (0)