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
  • Loading branch information
JBaczuk committed May 5, 2021
1 parent 9643128 commit d8f3bd9
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 d8f3bd9

Please sign in to comment.