diff --git a/README.md b/README.md index 1b063462..b8a8dd20 100644 --- a/README.md +++ b/README.md @@ -125,11 +125,11 @@ Note that both techniques achieve the same end-result. ```javascript // Load hash from your password DB. -bcrypt.compare(myPlaintextPassword, hash, function(err, res) { - // res == true +bcrypt.compare(myPlaintextPassword, hash, function(err, result) { + // result == true }); -bcrypt.compare(someOtherPlaintextPassword, hash, function(err, res) { - // res == false +bcrypt.compare(someOtherPlaintextPassword, hash, function(err, result) { + // == false }); ``` @@ -150,11 +150,11 @@ bcrypt.hash(myPlaintextPassword, saltRounds).then(function(hash) { ``` ```javascript // Load hash from your password DB. -bcrypt.compare(myPlaintextPassword, hash).then(function(res) { - // res == true +bcrypt.compare(myPlaintextPassword, hash).then(function(result) { + // result == true }); -bcrypt.compare(someOtherPlaintextPassword, hash).then(function(res) { - // res == false +bcrypt.compare(someOtherPlaintextPassword, hash).then(function(result) { + // result == false }); ```