From 27c5b7466753cf4e65cb0fa4239f99dd4c7b464e Mon Sep 17 00:00:00 2001 From: Tim Roberts Date: Sun, 4 Feb 2018 11:00:57 -0600 Subject: [PATCH] Modify description of `utils.promisify` This PR modifies the description of `utils.promisify` in order to more clearly explain what this function takes as an argument. --- backend/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/node.js b/backend/node.js index fdd9adf..a2a21e1 100644 --- a/backend/node.js +++ b/backend/node.js @@ -190,7 +190,7 @@ util.isArray(object); // Returns true if the given "object" is an Array util.isRegExp(object); // Returns true if the given "object" is a RegExp. false otherwise. util.isDate(object); // Returns true if the given "object" is a Date. false otherwise. util.isError(object); // Returns true if the given "object" is an Error. false otherwise. -util.promisify(fn) // Takes a function and returns a version that returns promises. +util.promisify(fn) // Takes a function whose last argument is a callback and returns a version that returns promises. util.inherits(constructor, superConstructor); // Inherit the prototype methods from one constructor into another.