Skip to main content

log_length_mismatch

Function log_length_mismatch 

Source
pub fn log_length_mismatch(fname: String, lhs: usize, rhs: usize) -> String
Expand description

Creates a formatted error message for length mismatches between left-hand side (LHS) and right-hand side (RHS) arrays.

§Arguments

  • fname - Function name where the mismatch occurred
  • lhs - Length of the left-hand side array
  • rhs - Length of the right-hand side array

§Returns

A formatted error message string