Fixing Typos

This commit is contained in:
Dan McPherson
2014-07-28 15:56:03 +02:00
parent 7ab785dc5f
commit c4f4f69b93
3 changed files with 3 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ func prepareEncode(obj interface{}) (*JSONBase, error) {
}
knownTypes, found := versionMap[jsonBase.APIVersion]
if !found {
return nil, fmt.Errorf("struct %s, %v won't be unmarshalable because its not in known versions", jsonBase.APIVersion, obj)
return nil, fmt.Errorf("struct %s, %v won't be unmarshalable because it's not in known versions", jsonBase.APIVersion, obj)
}
if _, contains := knownTypes[name]; !contains {
return nil, fmt.Errorf("struct %s won't be unmarshalable because it's not in knownTypes", name)