]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix typo in godoc for ParseECPrivateKey
authorKatie Hockman <katie@golang.org>
Tue, 19 Nov 2019 23:06:48 +0000 (18:06 -0500)
committerFilippo Valsorda <filippo@golang.org>
Wed, 20 Nov 2019 05:44:42 +0000 (05:44 +0000)
Change-Id: Ia65bac00fe8600f50620ce0583455eb33f06ff95
Reviewed-on: https://go-review.googlesource.com/c/go/+/207918
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/x509/sec1.go

index 6cffa59d0e97998fad4e7ba7ddd1962cf2424511..0bfb90cd5464aa7dc44c3761a7fe966a8e1b3cb0 100644 (file)
@@ -28,9 +28,9 @@ type ecPrivateKey struct {
        PublicKey     asn1.BitString        `asn1:"optional,explicit,tag:1"`
 }
 
-// ParseECPrivateKey parses an EC public key in SEC 1, ASN.1 DER form.
+// ParseECPrivateKey parses an EC private key in SEC 1, ASN.1 DER form.
 //
-// This kind of key is commonly encoded in PEM blocks of type "EC PUBLIC KEY".
+// This kind of key is commonly encoded in PEM blocks of type "EC PRIVATE KEY".
 func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) {
        return parseECPrivateKey(nil, der)
 }