diff --git a/doc/api/crypto.md b/doc/api/crypto.md index dfe49afa497781..2cfc94963c0ae6 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -3256,7 +3256,7 @@ changes: `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or `crypto.constants.RSA_PKCS1_PADDING`. * `encoding` {string} The string encoding to use when `buffer`, `key`, - or 'passphrase` are strings. + or `passphrase` are strings. * `buffer` {string|ArrayBuffer|Buffer|TypedArray|DataView} * Returns: {Buffer} A new `Buffer` with the encrypted content. @@ -3292,7 +3292,7 @@ changes: `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or `crypto.constants.RSA_PKCS1_PADDING`. * `encoding` {string} The string encoding to use when `buffer`, `key`, - or 'passphrase` are strings. + or `passphrase` are strings. * `buffer` {string|ArrayBuffer|Buffer|TypedArray|DataView} * Returns: {Buffer} A new `Buffer` with the decrypted content. @@ -3344,7 +3344,7 @@ changes: `crypto.constants.RSA_PKCS1_PADDING`, or `crypto.constants.RSA_PKCS1_OAEP_PADDING`. * `encoding` {string} The string encoding to use when `buffer`, `key`, - `oaepLabel`, or 'passphrase` are strings. + `oaepLabel`, or `passphrase` are strings. * `buffer` {string|ArrayBuffer|Buffer|TypedArray|DataView} * Returns: {Buffer} A new `Buffer` with the encrypted content. diff --git a/doc/api/stream.md b/doc/api/stream.md index 1d6b811c655fd5..1e14d3c6c29729 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2169,7 +2169,7 @@ user programs. be written. The `chunk` will be a string if the `Writable` was created with the `decodeStrings` option set to `false` and a string was passed to `write()`. * `encoding` {string} The character encoding of the `chunk`. If `chunk` is - a `Buffer`, the `encoding` will be `'buffer`. + a `Buffer`, the `encoding` will be `'buffer'`. * `callback` {Function} A callback function (optionally with an error argument) to be invoked when processing is complete for the supplied chunks.