Skip to content

Commit e5254c1

Browse files
JungMinurvagg
authored andcommitted
doc: fix reference to API hash.final
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]>
1 parent 87fd996 commit e5254c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/crypto.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ used in one of two ways:
538538

539539
- As a [stream][] that is both readable and writable, where data is written
540540
to produce a computed hash digest on the readable side, or
541-
- Using the `hash.update()` and `hash.final()` methods to produce the
541+
- Using the `hash.update()` and `hash.digest()` methods to produce the
542542
computed hash.
543543

544544
The `crypto.createHash()` method is used to create `Hash` instances. `Hash`

0 commit comments

Comments
 (0)