Explorar o código

Fixed TypeInfo's String() function, when type is a custom type.

Nimi Wariboko %!s(int64=11) %!d(string=hai) anos
pai
achega
8b616cffeb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      marshal.go

+ 1 - 1
marshal.go

@@ -1098,7 +1098,7 @@ func (t TypeInfo) String() string {
 	case TypeList, TypeSet:
 		return fmt.Sprintf("%s(%s)", t.Type, t.Elem)
 	case TypeCustom:
-		return fmt.Sprintf("%s(%s)", t.Type, t.Elem)
+		return fmt.Sprintf("%s(%s)", t.Type, t.Custom)
 	}
 	return t.Type.String()
 }