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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
JBaczuk authored and targos committed May 17, 2021
1 parent 4c70e42 commit 1d9fd49
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 1d9fd49

Please sign in to comment.