From ec26277aecfba112089b1bb54b522bf062059e22 Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Tue, 28 Feb 2023 10:11:51 -0800 Subject: [PATCH] crypto/x509: fix ParsePKCS8PrivateKey comment Fixes #58789 Change-Id: I91cdd20c6d4f05baaacd6a38717aa7bed6682573 Reviewed-on: https://go-review.googlesource.com/c/go/+/472155 TryBot-Result: Gopher Robot Run-TryBot: Roland Shoemaker Auto-Submit: Roland Shoemaker Reviewed-by: Damien Neil --- src/crypto/x509/pkcs8.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/x509/pkcs8.go b/src/crypto/x509/pkcs8.go index 63bfa9987d..2d085e0a96 100644 --- a/src/crypto/x509/pkcs8.go +++ b/src/crypto/x509/pkcs8.go @@ -28,7 +28,7 @@ type pkcs8 struct { // ParsePKCS8PrivateKey parses an unencrypted private key in PKCS #8, ASN.1 DER form. // // It returns a *rsa.PrivateKey, a *ecdsa.PrivateKey, a ed25519.PrivateKey (not -// a pointer), or a *ecdh.PublicKey (for X25519). More types might be supported +// a pointer), or a *ecdh.PrivateKey (for X25519). More types might be supported // in the future. // // This kind of key is commonly encoded in PEM blocks of type "PRIVATE KEY".