Skip to content

Commit

Permalink
Changed the word used in the documentation from response to result
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslatif committed Nov 1, 2019
1 parent 4bee1a8 commit 39057dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -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, response) {
// response == true
bcrypt.compare(myPlaintextPassword, hash, function(err, result) {
// result == true
});
bcrypt.compare(someOtherPlaintextPassword, hash, function(err, response) {
// response == false
bcrypt.compare(someOtherPlaintextPassword, hash, function(err, result) {
// == false
});
```

Expand All @@ -150,11 +150,11 @@ bcrypt.hash(myPlaintextPassword, saltRounds).then(function(hash) {
```
```javascript
// Load hash from your password DB.
bcrypt.compare(myPlaintextPassword, hash).then(function(response) {
// response == true
bcrypt.compare(myPlaintextPassword, hash).then(function(result) {
// result == true
});
bcrypt.compare(someOtherPlaintextPassword, hash).then(function(response) {
// response == false
bcrypt.compare(someOtherPlaintextPassword, hash).then(function(result) {
// result == false
});
```

Expand Down

0 comments on commit 39057dd

Please sign in to comment.