Skip to content

Commit

Permalink
improve an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 6, 2024
1 parent 2589ace commit 21cd997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub enum SizeError {
impl fmt::Display for SizeError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
SizeError::Overflow => write!(f, "Array size calculation overflowed"),
SizeError::Overflow => write!(f, "Resulting array would be too large"),
SizeError::TooLarge(size) => write!(f, "Array of {size} elements would be too large"),
}
}
Expand Down

0 comments on commit 21cd997

Please sign in to comment.