Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the examples to use the word response instead of res to avoid… #763

Merged
merged 2 commits into from Nov 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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, 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
});
```

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(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
});
```

Expand Down