Skip to content

Commit

Permalink
chore: better phrasing for error-ing partial functions (enricopolansk…
Browse files Browse the repository at this point in the history
  • Loading branch information
enricopolanski authored Feb 7, 2023
1 parent 5380b3b commit ffedbfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2296,7 +2296,7 @@ Can you find some cons of the Promise solution when using static typing like in

Let's see how to handle errors in a functional way.

A function that returns errors or throws exceptions is an example of a partial function.
A function that throws exceptions is an example of a partial function.

In the previous chapters we have seen that every partial function `f` can always be brought back to a total one `f'`.

Expand Down

0 comments on commit ffedbfa

Please sign in to comment.