Skip to content

Commit 4766f51

Browse files
tniessenjasnell
authored andcommitted
doc: remove superfluous word from crypto doc
PR-URL: #19946 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 105980f commit 4766f51

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/api/crypto.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,8 @@ added: v0.1.94
233233
-->
234234
- `outputEncoding` {string}
235235
- Returns: {Buffer | string} Any remaining enciphered contents.
236-
If `outputEncoding` parameter is one of `'latin1'`, `'base64'` or `'hex'`,
237-
a string is returned. If an `outputEncoding` is not provided, a [`Buffer`][]
238-
is returned.
236+
If `outputEncoding` is one of `'latin1'`, `'base64'` or `'hex'`, a string is
237+
returned. If an `outputEncoding` is not provided, a [`Buffer`][] is returned.
239238

240239
Once the `cipher.final()` method has been called, the `Cipher` object can no
241240
longer be used to encrypt data. Attempts to call `cipher.final()` more than
@@ -392,9 +391,8 @@ added: v0.1.94
392391
-->
393392
- `outputEncoding` {string}
394393
- Returns: {Buffer | string} Any remaining deciphered contents.
395-
If `outputEncoding` parameter is one of `'latin1'`, `'ascii'` or `'utf8'`,
396-
a string is returned. If an `outputEncoding` is not provided, a [`Buffer`][]
397-
is returned.
394+
If `outputEncoding` is one of `'latin1'`, `'ascii'` or `'utf8'`, a string is
395+
returned. If an `outputEncoding` is not provided, a [`Buffer`][] is returned.
398396

399397
Once the `decipher.final()` method has been called, the `Decipher` object can
400398
no longer be used to decrypt data. Attempts to call `decipher.final()` more

0 commit comments

Comments
 (0)