Prechádzať zdrojové kódy

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

Nimi Wariboko 11 rokov pred
rodič
commit
8b616cffeb
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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()
 }