1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:21:17 -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-16 10:13:32 +02:00
parent 0055708c82
commit 1553b834bb

View File

@ -593,7 +593,7 @@ const (
kindMask = (1 << 5) - 1 kindMask = (1 << 5) - 1
) )
// String returns a human-readable name of kind k. // 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]