diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 8dd9b7c41e1..5323e128a6f 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -384,7 +384,7 @@ then a buffer is returned. ### diffieHellman.getGenerator([encoding]) -Returns the Diffie-Hellman prime in the specified encoding, which can +Returns the Diffie-Hellman generator in the specified encoding, which can be `'binary'`, `'hex'`, or `'base64'`. If no encoding is provided, then a buffer is returned.