lang: funcs: Add nitpicks from funcgen

Discussed nitpicks with roidelapluie to clean up slightly for
consistency.
This commit is contained in:
James Shubin
2019-10-30 08:44:03 -04:00
parent 1685ee1ecb
commit 631124e658
6 changed files with 14 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ func (obj *arg) ToMcl() (string, error) {
return fmt.Sprintf("%s%s", prefix, types.TypeBool.String()), nil
case "string":
return fmt.Sprintf("%s%s", prefix, types.TypeStr.String()), nil
case "int64", "int":
case "int", "int64":
return fmt.Sprintf("%s%s", prefix, types.TypeInt.String()), nil
case "float64":
return fmt.Sprintf("%s%s", prefix, types.TypeFloat.String()), nil