Skip to content

Commit

Permalink
doc: fix reference to API hash.final
Browse files Browse the repository at this point in the history
fix a reference to a non-existent API, `hash.final()`.
It should be `hash.digest()`.

PR-URL: #5050
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
  • Loading branch information
JungMinu committed Feb 4, 2016
1 parent c41c093 commit 34a5019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 34a5019

Please sign in to comment.