From e5254c12f4c511f32e05dded0a57fcd88d1edcd7 Mon Sep 17 00:00:00 2001 From: Minwoo Jung Date: Wed, 3 Feb 2016 11:44:22 +0900 Subject: [PATCH] doc: fix reference to API `hash.final` fix a reference to a non-existent API, `hash.final()`. It should be `hash.digest()`. PR-URL: https://github.com/nodejs/node/pull/5050 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Evan Lucas --- doc/api/crypto.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 86bc5d658158de..9dae59bb4fa57e 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -538,7 +538,7 @@ used in one of two ways: - As a [stream][] that is both readable and writable, where data is written to produce a computed hash digest on the readable side, or -- Using the `hash.update()` and `hash.final()` methods to produce the +- Using the `hash.update()` and `hash.digest()` methods to produce the computed hash. The `crypto.createHash()` method is used to create `Hash` instances. `Hash`