Skip to content

Commit 1d9fd49

Browse files
JBaczuktargos
authored andcommitted
doc: fix code example in ecdh.setPublicKey()
Fixes: #38540 PR-URL: #38542 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 4c70e42 commit 1d9fd49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/crypto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ Example (obtaining a shared secret):
14011401
const {
14021402
createECDH,
14031403
createHash,
1404-
} = await crypto('crypto');
1404+
} = await import('crypto');
14051405

14061406
const alice = createECDH('secp256k1');
14071407
const bob = createECDH('secp256k1');

0 commit comments

Comments
 (0)