Browse Source

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

Nimi Wariboko 11 years ago
parent
commit
8b616cffeb
1 changed files with 1 additions and 1 deletions
  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()
 }