mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 15:15:47 +03:00
Fix codegen for array init expressions
This commit is contained in:
parent
be75b14795
commit
34794f94ea
@ -154,7 +154,7 @@ impl<'a> CodeGenerator<'a> {
|
||||
input.elements.iter().map(|expr| self.visit_expression(expr)).fold(
|
||||
(String::new(), String::new()),
|
||||
|(mut operands, mut instructions), (operand, operand_instructions)| {
|
||||
operands.push_str(&operand);
|
||||
operands.push_str(&format!(" {operand}"));
|
||||
instructions.push_str(&operand_instructions);
|
||||
(operands, instructions)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user