Skip to content

Commit d2a0636

Browse files
Ojasvi MongaOjasvi Monga
authored andcommitted
move text above code
1 parent a04b890 commit d2a0636

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/crypto.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,14 +703,13 @@ module):
703703
added: v0.7.5
704704
-->
705705

706-
Usage:
706+
The `DiffieHellmanGroup` class takes a well-known modp group as its argument but
707+
otherwise works the same as `DiffieHellman`.
707708

708709
```js
709710
const name = 'modp1';
710711
const dh = crypto.createDiffieHellmanGroup(name);
711712
```
712-
It takes a well-known modp group as its argument but
713-
otherwise works the same as `DiffieHellman`.
714713

715714
`name` is taken from [RFC 2412][] (modp1 and 2) and [RFC 3526][]:
716715
```bash

0 commit comments

Comments
 (0)