Skip to content

Commit e852024

Browse files
committed
Point-Free Style: fix js error
according to the way it's used, add should by curried
1 parent b79c730 commit e852024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ executions with the the same input parameters.
141141
```js
142142
// Given
143143
let map = fn => list => list.map(fn);
144-
let add = (a, b) => a + b;
144+
let add = a => b => a + b;
145145

146146
// Then
147147

0 commit comments

Comments
 (0)