1
0
mirror of https://github.com/golang/go synced 2024-11-26 23:01:23 -07:00

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.
This commit is contained in:
Vladimir Kovpak 2018-11-15 23:22:22 +02:00
parent 5fc4604aa8
commit 0055708c82

View File

@ -593,6 +593,7 @@ const (
kindMask = (1 << 5) - 1
)
// String returns a human-readable name of kind k.
func (k Kind) String() string {
if int(k) < len(kindNames) {
return kindNames[k]