doc: fix a typo in crypto.generateKeyPairSync()

PR-URL: https://github.com/nodejs/node/pull/33187
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
himself65 authored and Michaël Zasso committed 2020-05-04 14:24:02 +02:00
1 parent bb2d2f6e0e
commit 7893bde07e
1 file changed
+2 -2
+2 -2
View File
@@ -2222,8 +2222,8 @@ behaves as if [`keyObject.export()`][] had been called on its result. Otherwise,
the respective part of the key is returned as a [`KeyObject`][].
When encoding public keys, it is recommended to use `'spki'`. When encoding
private keys, it is recommended to use `'pks8'` with a strong passphrase, and to
keep the passphrase confidential.
private keys, it is recommended to use `'pkcs8'` with a strong passphrase,
and to keep the passphrase confidential.
```js
const { generateKeyPairSync } = require('crypto');