Skip to content

Commit 722ff6b

Browse files
cn0047ianlancetaylor
authored andcommitted
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: 1553b83 GitHub-Pull-Request: #28818 Reviewed-on: https://go-review.googlesource.com/c/149721 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 657f6d6 commit 722ff6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reflect/type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ const (
593593
kindMask = (1 << 5) - 1
594594
)
595595

596+
// String returns the name of k.
596597
func (k Kind) String() string {
597598
if int(k) < len(kindNames) {
598599
return kindNames[k]

0 commit comments

Comments
 (0)