Skip to content

Commit 0404140

Browse files
authored
Merge pull request basarat#433 from elimisteve/patch-2
never.md: Added missing period to end of sentence
2 parents ed69d91 + 2ca5127 commit 0404140

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
@@ -53,7 +53,7 @@ And because `never` is only assignable to another `never` you can use it for *co
5353

5454
# Confusion with `void`
5555

56-
As soon as someone tells you that `never` is returned when a function never exits gracefully you intuitively want to think of it as the same as `void` However, `void` is a Unit. `never` is a falsum.
56+
As soon as someone tells you that `never` is returned when a function never exits gracefully you intuitively want to think of it as the same as `void`. However, `void` is a Unit. `never` is a falsum.
5757

5858
A function that *returns* nothing returns a Unit `void`. However, a function *that never returns* (or always throws) returns `never`. `void` is something that can be assigned (without `strictNullChecking`) but `never` can `never` be assigned to anything other than `never`.
5959

0 commit comments

Comments
 (0)