From 6f3c18b0a735547d46293acd41f2e7a43c145a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 8 Feb 2021 01:37:00 +0100 Subject: [PATCH 1/2] doc: fix backticks in crypto API docs --- doc/api/crypto.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. From 2a8b5050f5226e9728c1eaef8068dcf2a4a766c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 8 Feb 2021 14:26:31 +0100 Subject: [PATCH 2/2] doc: fix quotes in stream docs --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.