Skip to content

Commit

Permalink
fix: corrected the formatting of error message parameters in index ou…
Browse files Browse the repository at this point in the history
…t of bounds error (#3630)

chore: corrected the formatting of error message parameters in index out of bounds error
  • Loading branch information
kek kek kek authored Nov 29, 2023
1 parent 2b0fce2 commit 3bba386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_evaluator/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum RuntimeError {
},
#[error(transparent)]
InternalError(#[from] InternalError),
#[error("Index out of bounds, array has size {index:?}, but index was {array_size:?}")]
#[error("Index out of bounds, array has size {array_size}, but index was {index}")]
IndexOutOfBounds { index: usize, array_size: usize, call_stack: CallStack },
#[error("Range constraint of {num_bits} bits is too large for the Field size")]
InvalidRangeConstraint { num_bits: u32, call_stack: CallStack },
Expand Down

0 comments on commit 3bba386

Please sign in to comment.