From ee04dbf430de4343a3406253a132267bea38d3e6 Mon Sep 17 00:00:00 2001 From: Katie Hockman Date: Tue, 19 Nov 2019 18:06:48 -0500 Subject: [PATCH] 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 --- src/crypto/x509/sec1.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } -- 2.50.0