]> Cypherpunks.ru repositories - gostls13.git/commitdiff
crypto/x509/pkix: remove references to fmt.Stringer in String method docs
authorRuss Cox <rsc@golang.org>
Wed, 6 Dec 2017 02:53:30 +0000 (21:53 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 6 Dec 2017 05:05:18 +0000 (05:05 +0000)
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 <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/x509/pkix/pkix.go

index 3cf884e4eb85c9a31c2cf77ca0ef21147a90bd37..7b32220b74e17460634f6c703f772271413cb037 100644 (file)
@@ -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()
 }