Skip to content

Commit

Permalink
reflect: add comment for String method of Kind struct
Browse files Browse the repository at this point in the history
On reflect documentation page only this function
doesn't have description, this commit add simple description.

Change-Id: Idcda89ddd1f6fdd1938c4030e89ebdc186255ce6
GitHub-Last-Rev: 1553b83
GitHub-Pull-Request: #28818
Reviewed-on: https://go-review.googlesource.com/c/149721
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
cn007b authored and ianlancetaylor committed Nov 16, 2018
1 parent 48e4d36 commit 9ffd5f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reflect/type.go
Expand Up @@ -593,6 +593,7 @@ const (
kindMask = (1 << 5) - 1
)

// String returns the name of k.
func (k Kind) String() string {
if int(k) < len(kindNames) {
return kindNames[k]
Expand Down

0 comments on commit 9ffd5f3

Please sign in to comment.