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:
parent
5fc4604aa8
commit
0055708c82
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user