Skip to content

Commit be47e39

Browse files
author
Dima
committed
mend
1 parent fadab2c commit be47e39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/guru/describe.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func describeValue(qpos *queryPos, path []ast.Node) (*describeValueResult, error
353353
// It does not descend into structs or interfaces.
354354
func appendNames(names []*types.Named, typ types.Type) []*types.Named {
355355
// elemType specifies type that has some element in it
356-
// such as array, slice, map, chan, pointer
356+
// such as array, slice, chan, pointer
357357
type elemType interface {
358358
Elem() types.Type
359359
}
@@ -362,7 +362,6 @@ func appendNames(names []*types.Named, typ types.Type) []*types.Named {
362362
case *types.Named:
363363
names = append(names, t)
364364
case *types.Map:
365-
// for map take key type and value type
366365
names = appendNames(names, t.Key())
367366
names = appendNames(names, t.Elem())
368367
case elemType:

0 commit comments

Comments
 (0)