From c4fbdfa7854485dc44d2489026a6f22e77a33e23 Mon Sep 17 00:00:00 2001 From: iamchenxin Date: Fri, 2 Dec 2016 00:14:26 -0700 Subject: [PATCH] doc: fix typo for `decipher.final`. The `output_encoding` parameter should be as the same as `decipher.update`. PR-URL: https://github.com/nodejs/node/pull/10086 Reviewed-By: Anna Henningsen --- doc/api/crypto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 4dec3e0aca17f8..17d5a5c0faf2c7 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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