diff options
Diffstat (limited to 'src/lib/reflect/tostring.go')
-rw-r--r-- | src/lib/reflect/tostring.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/reflect/tostring.go b/src/lib/reflect/tostring.go index 38d9d9135..d317e1a68 100644 --- a/src/lib/reflect/tostring.go +++ b/src/lib/reflect/tostring.go @@ -81,7 +81,7 @@ func TypeToString(typ Type, expand bool) string { return "*" + TypeToString(p.Sub(), false); case ArrayKind: a := typ.(ArrayType); - if a.Open() { + if a.IsSlice() { str = "[]" } else { str = "[" + strconv.Itoa64(int64(a.Len())) + "]" |