From b0bb42bd7d8905c7926982b494d007a4191a1002 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 d5192f9632e830..8726ed8c7fe211 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`