Skip to content

Commit 7f88e6f

Browse files
authored
Merge pull request #591 from oleglegun/patch-1
Fix invalid function name
2 parents 46bdbde + d559322 commit 7f88e6f

File tree

1 file changed

+3
-3
lines changed
  • 1-js/06-advanced-functions/11-currying-partials

1 file changed

+3
-3
lines changed

1-js/06-advanced-functions/11-currying-partials/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,13 @@ function sum(a, b, c) {
234234
let curriedSum = curry(sum);
235235

236236
// still callable normally
237-
alert( curried(1, 2, 3) ); // 6
237+
alert( curriedSum(1, 2, 3) ); // 6
238238

239239
// get the partial with curried(1) and call it with 2 other arguments
240-
alert( curried(1)(2,3) ); // 6
240+
alert( curriedSum(1)(2,3) ); // 6
241241

242242
// full curried form
243-
alert( curried(1)(2)(3) ); // 6
243+
alert( curriedSum(1)(2)(3) ); // 6
244244
```
245245

246246
The new `curry` may look complicated, but it's actually pretty easy to understand.

0 commit comments

Comments
 (0)