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:
parent
8b1af2f8d4
commit
7e51966b32
@ -1128,7 +1128,7 @@ Example:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const crypto = require('crypto');
|
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'
|
console.log(key.toString('hex')); // 'c5e478d...1469e50'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user