]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: add comment for String method of Kind struct
authorVladimir Kovpak <cn007b@gmail.com>
Fri, 16 Nov 2018 14:23:17 +0000 (14:23 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 16 Nov 2018 14:29:14 +0000 (14:29 +0000)
On reflect documentation page only this function
doesn't have description, this commit add simple description.

Change-Id: Idcda89ddd1f6fdd1938c4030e89ebdc186255ce6
GitHub-Last-Rev: 1553b834bb4f7a49efc7ff81763a255bc51bbf17
GitHub-Pull-Request: golang/go#28818
Reviewed-on: https://go-review.googlesource.com/c/149721
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/reflect/type.go

index 5bbab79fc0775d0ce2fad62a877c2473e118a884..f48f9cf09de4647567a412bdd51a2de2ab37ebeb 100644 (file)
@@ -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]