From 7c3c16b7be8ee6d388c418d65438d658665bab4d Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 31 Jul 2020 11:00:17 -0700 Subject: [PATCH] Fix UnmarshalJSON comment. --- x509util/algorithms.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x509util/algorithms.go b/x509util/algorithms.go index 10e7d9ed..93e60246 100644 --- a/x509util/algorithms.go +++ b/x509util/algorithms.go @@ -37,8 +37,8 @@ func (s SignatureAlgorithm) Set(c *x509.Certificate) { c.SignatureAlgorithm = x509.SignatureAlgorithm(s) } -// UnmarshalJSON implements the json.Unmarshal interface and unmarshals a JSON -// object in the Subject struct or a string as just the subject common name. +// UnmarshalJSON implements the json.Unmarshal interface and unmarshals and +// validates a string as a SignatureAlgorithm. func (s *SignatureAlgorithm) UnmarshalJSON(data []byte) error { name, err := unmarshalString(data) if err != nil {