]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix typo in comment.
authorAdam Langley <agl@golang.org>
Wed, 11 Dec 2013 22:27:29 +0000 (17:27 -0500)
committerAdam Langley <agl@golang.org>
Wed, 11 Dec 2013 22:27:29 +0000 (17:27 -0500)
Fixes #6633.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/40720046

src/pkg/crypto/x509/x509.go

index 57f68ba7edce0f6837e4ddee9231720d137a7067..4a5e7e86e5d4090bf1a9a251871202fd334368f3 100644 (file)
@@ -1355,7 +1355,7 @@ func subjectBytes(cert *Certificate) ([]byte, error) {
 // The returned slice is the certificate in DER encoding.
 //
 // The only supported key types are RSA and ECDSA (*rsa.PublicKey or
-// *ecdsa.PublicKey for pub, *rsa.PrivateKey or *ecdsa.PublicKey for priv).
+// *ecdsa.PublicKey for pub, *rsa.PrivateKey or *ecdsa.PrivateKey for priv).
 func CreateCertificate(rand io.Reader, template, parent *Certificate, pub interface{}, priv interface{}) (cert []byte, err error) {
        var publicKeyBytes []byte
        var publicKeyAlgorithm pkix.AlgorithmIdentifier