diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index a4f6f11353..0280aec5d1 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -297,7 +297,7 @@ impl<'a> CodeGenerator<'a> { write!(instruction, " {argument}").expect("failed to write to string"); } let destination_register = get_destination_register(); - write!(instruction, " into {destination_register} as {return_type};\n").expect("failed to write to string"); + writeln!(instruction, " into {destination_register} as {return_type};").expect("failed to write to string"); (destination_register, instruction) };