From aed17e963ae6c4fb8b745116823863450761d33d Mon Sep 17 00:00:00 2001 From: Jordan Baczuk Date: Tue, 4 May 2021 17:52:46 -0600 Subject: [PATCH] doc: fix code example in ecdh.setPublicKey() Fixes: https://github.com/nodejs/node/issues/38540 PR-URL: https://github.com/nodejs/node/pull/38542 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel Reviewed-By: Filip Skokan Reviewed-By: Darshan Sen Reviewed-By: Rich Trott --- doc/api/crypto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 88d617949abdf4..d0a3bb41b0ecce 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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');