Skip to content

Commit

Permalink
doc: fix code example in ecdh.setPublicKey()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
JBaczuk authored and Trott committed May 6, 2021
1 parent 26e318a commit aed17e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ Example (obtaining a shared secret):
const {
createECDH,
createHash,
} = await crypto('crypto');
} = await import('crypto');

const alice = createECDH('secp256k1');
const bob = createECDH('secp256k1');
Expand Down

0 comments on commit aed17e9

Please sign in to comment.