Improved codegen
This commit is contained in:
+5
-2
@@ -166,9 +166,12 @@ impl GenRust for Postfix {
|
||||
Postfix::Call(args) => {
|
||||
cg.add("(");
|
||||
|
||||
for arg in args {
|
||||
for (i, arg) in args.iter().enumerate() {
|
||||
if i > 0 {
|
||||
cg.add(", ");
|
||||
}
|
||||
|
||||
arg.gen_rust(ctx, cg);
|
||||
cg.add(", ");
|
||||
}
|
||||
|
||||
cg.add(")");
|
||||
|
||||
Reference in New Issue
Block a user