doc: fix crypto spkac function descriptions
authorJason Gerfen <jason.gerfen@gmail.com>
Sat, 31 Oct 2015 15:24:08 +0000 (09:24 -0600)
committerJames M Snell <jasnell@gmail.com>
Wed, 23 Dec 2015 16:38:33 +0000 (08:38 -0800)
Fix regarding description of the following functions:

Certificate.exportPublicKey(spkac)
Certificate.exportChallenge(spkac)

The descriptions were applied incorrectly.

PR-URL: https://github.com/nodejs/node/pull/3614
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
doc/api/crypto.markdown

index b4bdd55..b1da678 100644 (file)
@@ -673,11 +673,11 @@ Returns true of false based on the validity of the SPKAC.
 
 ### Certificate.exportChallenge(spkac)
 
-Exports the encoded public key from the supplied SPKAC.
+Exports the encoded challenge associated with the SPKAC.
 
 ### Certificate.exportPublicKey(spkac)
 
-Exports the encoded challenge associated with the SPKAC.
+Exports the encoded public key from the supplied SPKAC.
 
 ## crypto.publicEncrypt(public_key, buffer)