From d2a0636b44f75ceacd05663dea284406e3d1e772 Mon Sep 17 00:00:00 2001 From: Ojasvi Monga Date: Fri, 12 Jul 2019 17:24:06 +0900 Subject: [PATCH] move text above code --- doc/api/crypto.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index b5450c12e2187d..c19973faf37d9f 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -703,14 +703,13 @@ module): added: v0.7.5 --> -Usage: +The `DiffieHellmanGroup` class takes a well-known modp group as its argument but +otherwise works the same as `DiffieHellman`. ```js const name = 'modp1'; const dh = crypto.createDiffieHellmanGroup(name); ``` -It takes a well-known modp group as its argument but - otherwise works the same as `DiffieHellman`. `name` is taken from [RFC 2412][] (modp1 and 2) and [RFC 3526][]: ```bash