Skip to content

Commit

Permalink
Fix string format
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Jan 5, 2023
1 parent 538acf9 commit 923421a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/errors/vm_exception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn substitute_error_message_references(
// We iterate over the available references and check if one of them is addressed in the error message
for (cairo_variable_name, ref_id) in &tracking_data.reference_ids {
let format_variable_name = |name: &String| -> Option<String> {
Some(format!("{{ {} }}", name.rsplit('.').next()?))
Some(format!("{{{}}}", name.rsplit('.').next()?))
};
let formated_variable_name = match format_variable_name(cairo_variable_name) {
Some(string) => string,
Expand Down

0 comments on commit 923421a

Please sign in to comment.