mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: fix typo in pbkdf2Sync code sample
Function name in code sample had the wrong capitalization. PR-URL: https://github.com/nodejs/node/pull/5306 Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
1 parent
d4cfc6f97c
commit
38d429172d
1 file changed
+1
-1
@@ -1131,7 +1131,7 @@ Example:
|
||||
|
||||
```js
|
||||
const crypto = require('crypto');
|
||||
const key = crypto.pbkdf2sync('secret', 'salt', 100000, 512, 'sha512');
|
||||
const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512');
|
||||
console.log(key.toString('hex')); // 'c5e478d...1469e50'
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user