mirror of https://github.com/golang/go.git
reflect: add comment for String method of Kind struct
On reflect documentation page only this function
doesn't have description, this commit add simple description.
Change-Id: Idcda89ddd1f6fdd1938c4030e89ebdc186255ce6
GitHub-Last-Rev: 1553b834bb
GitHub-Pull-Request: golang/go#28818
Reviewed-on: https://go-review.googlesource.com/c/149721
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
48e4d36fed
commit
9ffd5f31dc
|
|
@ -593,6 +593,7 @@ const (
|
||||||
kindMask = (1 << 5) - 1
|
kindMask = (1 << 5) - 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// String returns the name of k.
|
||||||
func (k Kind) String() string {
|
func (k Kind) String() string {
|
||||||
if int(k) < len(kindNames) {
|
if int(k) < len(kindNames) {
|
||||||
return kindNames[k]
|
return kindNames[k]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue