Skip to content

Commit 38d4291

Browse files
mjcuvaMyles Borins
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 d4cfc6f commit 38d4291

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
@@ -1131,7 +1131,7 @@ Example:
11311131

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

0 commit comments

Comments
 (0)