mirror of
https://github.com/golang/go
synced 2024-11-23 20:40:07 -07:00
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 <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
b36b12b292
commit
a032f74bf0
@ -35,8 +35,8 @@ var attributeTypeNames = map[string]string{
|
|||||||
"2.5.4.17": "POSTALCODE",
|
"2.5.4.17": "POSTALCODE",
|
||||||
}
|
}
|
||||||
|
|
||||||
// String implements the fmt.Stringer interface. It loosely follows the
|
// String returns a string representation of the sequence r,
|
||||||
// string conversion rules for Distinguished Names from RFC 2253.
|
// roughly following the RFC 2253 Distinguished Names syntax.
|
||||||
func (r RDNSequence) String() string {
|
func (r RDNSequence) String() string {
|
||||||
s := ""
|
s := ""
|
||||||
for i := 0; i < len(r); i++ {
|
for i := 0; i < len(r); i++ {
|
||||||
@ -221,8 +221,8 @@ func (n Name) ToRDNSequence() (ret RDNSequence) {
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
// String implements the fmt.Stringer interface. It loosely follows the
|
// String returns the string form of n, roughly following
|
||||||
// string conversion rules for Distinguished Names from RFC 2253.
|
// the RFC 2253 Distinguished Names syntax.
|
||||||
func (n Name) String() string {
|
func (n Name) String() string {
|
||||||
return n.ToRDNSequence().String()
|
return n.ToRDNSequence().String()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user