Procházet zdrojové kódy

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

Nimi Wariboko před 11 roky
rodič
revize
8b616cffeb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()
 }