Skip to content

Commit b167727

Browse files
iamchenxinMylesBorins
authored andcommitted
doc: fix typo for decipher.final.
The `output_encoding` parameter should be as the same as `decipher.update`. PR-URL: #10086 Reviewed-By: Anna Henningsen <[email protected]>
1 parent adb3067 commit b167727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/crypto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ added: v0.1.94
313313
-->
314314

315315
Returns any remaining deciphered contents. If `output_encoding`
316-
parameter is one of `'latin1'`, `'base64'` or `'hex'`, a string is returned.
316+
parameter is one of `'latin1'`, `'ascii'` or `'utf8'`, a string is returned.
317317
If an `output_encoding` is not provided, a [`Buffer`][] is returned.
318318

319319
Once the `decipher.final()` method has been called, the `Decipher` object can

0 commit comments

Comments
 (0)