doc: fix typo in setPrivateKey function signature
authorTim Kuijsten <tim@netsend.nl>
Tue, 20 Nov 2012 16:15:17 +0000 (17:15 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Tue, 20 Nov 2012 17:02:56 +0000 (18:02 +0100)
doc/api/crypto.markdown

index 28fda50..4a5735d 100644 (file)
@@ -366,7 +366,7 @@ Sets the Diffie-Hellman public key. Key encoding can be `'binary'`,
 `'hex'` or `'base64'`. If no encoding is provided, then a buffer is
 expected.
 
-### diffieHellman.setPrivateKey(public_key, [encoding])
+### diffieHellman.setPrivateKey(private_key, [encoding])
 
 Sets the Diffie-Hellman private key. Key encoding can be `'binary'`,
 `'hex'` or `'base64'`. If no encoding is provided, then a buffer is