Skip to content

Commit a914bad

Browse files
authored
fix typo in 06-promisify article.md
promisiefy -> promisify
1 parent 9e99c36 commit a914bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/11-async/06-promisify/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The code may look a bit complex, but it's essentially the same that we wrote abo
8282

8383
A call to `promisify(f)` returns a wrapper around `f` `(*)`. That wrapper returns a promise and forwards the call to the original `f`, tracking the result in the custom callback `(**)`.
8484

85-
Here, `promisiefy` assumes that the original function expects a callback with exactly two arguments `(err, result)`. That's what we encounter most often. Then our custom callback is in exactly the right format, and `promisify` works great for such a case.
85+
Here, `promisify` assumes that the original function expects a callback with exactly two arguments `(err, result)`. That's what we encounter most often. Then our custom callback is in exactly the right format, and `promisify` works great for such a case.
8686

8787
But what if the original `f` expects a callback with more arguments `callback(err, res1, res2, ...)`?
8888

0 commit comments

Comments
 (0)