Don't show ... in help for named slice types.

This commit is contained in:
Alec Thomas
2018-11-06 11:15:35 +11:00
parent 041e879d63
commit e474873f84
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ func (v *Value) IsCumulative() bool {
// IsSlice returns true if the value is a slice.
func (v *Value) IsSlice() bool {
return v.Target.Kind() == reflect.Slice
return v.Target.Type().Name() == "" && v.Target.Kind() == reflect.Slice
}
// IsMap returns true if the value is a map.