Skip to content

Commit

Permalink
doc: fix typo for decipher.final.
Browse files Browse the repository at this point in the history
The `output_encoding` parameter should be as the same as
`decipher.update`.

PR-URL: #10086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
iamchenxin authored and MylesBorins committed Dec 20, 2016
1 parent adb3067 commit b167727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ added: v0.1.94
-->

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

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

0 comments on commit b167727

Please sign in to comment.