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: nodejs#10086
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
iamchenxin authored and Jonathan Darling committed Dec 8, 2016
1 parent a4040da commit d9fc473
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 @@ -317,7 +317,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 d9fc473

Please sign in to comment.