Skip to content

Commit

Permalink
fix: drop trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmekk authored and jethrolarson committed Oct 19, 2018
1 parent 1129498 commit 0ebee1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ times(3)(console.log)
// 3
// 2
// 1
times(-1)(console.log)
times(-1)(console.log)
// RangeError: Maximum call stack size exceeded
```
### Avoiding partial functions
Expand Down Expand Up @@ -980,7 +980,7 @@ times(3)(console.log)
// 3
// 2
// 1
times(-1)(console.log)
times(-1)(console.log)
// won't execute anything
```
If you will change all your functions from partial to total, it can prevent you from having runtime exceptions, will make code easier to reason about and easier to maintain.
Expand Down

0 comments on commit 0ebee1d

Please sign in to comment.