From: Russ Cox Date: Wed, 6 Dec 2017 02:53:30 +0000 (-0500) Subject: crypto/x509/pkix: remove references to fmt.Stringer in String method docs X-Git-Tag: go1.10beta1~22 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a032f74bf0b40a94669159e7d7e96722eb76199b;p=gostls13.git crypto/x509/pkix: remove references to fmt.Stringer in String method docs String method comments should explain what they do, not that they are attempting to implement fmt.Stringer. Change-Id: If51dd1ff2f0c2f9ef9dca569bfa0c3914be2e8fe Reviewed-on: https://go-review.googlesource.com/82081 Run-TryBot: Russ Cox TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/crypto/x509/pkix/pkix.go b/src/crypto/x509/pkix/pkix.go index 3cf884e4eb..7b32220b74 100644 --- a/src/crypto/x509/pkix/pkix.go +++ b/src/crypto/x509/pkix/pkix.go @@ -35,8 +35,8 @@ var attributeTypeNames = map[string]string{ "2.5.4.17": "POSTALCODE", } -// String implements the fmt.Stringer interface. It loosely follows the -// string conversion rules for Distinguished Names from RFC 2253. +// String returns a string representation of the sequence r, +// roughly following the RFC 2253 Distinguished Names syntax. func (r RDNSequence) String() string { s := "" for i := 0; i < len(r); i++ { @@ -221,8 +221,8 @@ func (n Name) ToRDNSequence() (ret RDNSequence) { return ret } -// String implements the fmt.Stringer interface. It loosely follows the -// string conversion rules for Distinguished Names from RFC 2253. +// String returns the string form of n, roughly following +// the RFC 2253 Distinguished Names syntax. func (n Name) String() string { return n.ToRDNSequence().String() }