Skip to content

Commit 0cd5973

Browse files
committed
fix: fix the lift example error
1 parent 273175d commit 0cd5973

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
@@ -456,7 +456,7 @@ const mult = a => b => a * b
456456
const liftedMult = liftA2(mult) // this function now works on functors like array
457457

458458
liftedMult([1, 2], [3]) // [3, 6]
459-
liftA2((a, b) => a + b)([1, 2], [3, 4]) // [4, 5, 5, 6]
459+
liftA2(a => b => a + b)([1, 2], [3, 4]) // [4, 5, 5, 6]
460460
```
461461

462462
Lifting a one-argument function and applying it does the same thing as `map`.

0 commit comments

Comments
 (0)