Skip to content

Commit

Permalink
Semantic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grasshopper47 committed Nov 30, 2023
1 parent 4841a10 commit 6ccbe09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tooling/nargo/src/ops/foreign_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ impl DefaultForeignCallExecutor {

fn execute_print(foreign_call_inputs: &[ForeignCallParam]) -> Result<(), ForeignCallError> {
let display_values: PrintableValueDisplay = foreign_call_inputs.try_into()?;
let with_newline = foreign_call_inputs[1].unwrap_value().is_zero();
print!("{display_values}{}", if with_newline { "" } else { "\n" });
let skip_newline = foreign_call_inputs[1].unwrap_value().is_zero();
print!("{display_values}{}", if skip_newline { "" } else { "\n" });

Ok(())
}
Expand Down

0 comments on commit 6ccbe09

Please sign in to comment.