diff --git a/node.go b/node.go index d8e0bab..7acb79a 100644 --- a/node.go +++ b/node.go @@ -1010,7 +1010,7 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error) } this.importPackages["strings"] = struct{}{} funcName = `strings.Split` - callParams[0], callParams[1] = callParams[1], callParams[2] // need to reverse function argument order + callParams[0], callParams[1] = callParams[1], callParams[0] // need to reverse function argument order } else if funcName == `implode` { if len(callParams) != 2 { @@ -1019,7 +1019,7 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error) this.importPackages["strings"] = struct{}{} funcName = `strings.Join` - callParams[0], callParams[1] = callParams[1], callParams[2] // need to reverse function argument order + callParams[0], callParams[1] = callParams[1], callParams[0] // need to reverse function argument order }