From: Katie Hockman Date: Tue, 19 Nov 2019 23:06:48 +0000 (-0500) Subject: crypto/x509: fix typo in godoc for ParseECPrivateKey X-Git-Tag: go1.14beta1~144 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ee04dbf430de4343a3406253a132267bea38d3e6;p=gostls13.git crypto/x509: fix typo in godoc for ParseECPrivateKey Change-Id: Ia65bac00fe8600f50620ce0583455eb33f06ff95 Reviewed-on: https://go-review.googlesource.com/c/go/+/207918 Run-TryBot: Katie Hockman TryBot-Result: Gobot Gobot Reviewed-by: Filippo Valsorda --- diff --git a/src/crypto/x509/sec1.go b/src/crypto/x509/sec1.go index 6cffa59d0e..0bfb90cd54 100644 --- a/src/crypto/x509/sec1.go +++ b/src/crypto/x509/sec1.go @@ -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) }