Skip to content

Commit 7e51966

Browse files
mjcuvasilverwind
authored andcommitted
doc: fix typo in pbkdf2Sync code sample
Function name in code sample had the wrong capitalization. PR-URL: #5306 Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent 8b1af2f commit 7e51966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/crypto.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ Example:
11281128

11291129
```js
11301130
const crypto = require('crypto');
1131-
const key = crypto.pbkdf2sync('secret', 'salt', 100000, 512, 'sha512');
1131+
const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512');
11321132
console.log(key.toString('hex')); // 'c5e478d...1469e50'
11331133
```
11341134

0 commit comments

Comments
 (0)