Skip to content

Commit a6473a8

Browse files
fengmk2marco-ippolito
authored andcommitted
doc: remove ArrayBuffer from crypto.hash() data parameter type
PR-URL: #52069 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 7f575c8 commit a6473a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3630,7 +3630,7 @@ Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
36303630
Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
36313631
(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
36323632

3633-
### `crypto.hash(algorith, data[, outputEncoding])`
3633+
### `crypto.hash(algorithm, data[, outputEncoding])`
36343634

36353635
<!-- YAML
36363636
added:
@@ -3640,7 +3640,7 @@ added:
36403640
> Stability: 1.2 - Release candidate
36413641
36423642
* `algorithm` {string|undefined}
3643-
* `data` {string|ArrayBuffer|Buffer|TypedArray|DataView} When `data` is a
3643+
* `data` {string|Buffer|TypedArray|DataView} When `data` is a
36443644
string, it will be encoded as UTF-8 before being hashed. If a different
36453645
input encoding is desired for a string input, user could encode the string
36463646
into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing

0 commit comments

Comments
 (0)