Skip to content

Commit 21cd997

Browse files
committed
improve an error message
1 parent 2589ace commit 21cd997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algorithm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub enum SizeError {
6767
impl fmt::Display for SizeError {
6868
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
6969
match self {
70-
SizeError::Overflow => write!(f, "Array size calculation overflowed"),
70+
SizeError::Overflow => write!(f, "Resulting array would be too large"),
7171
SizeError::TooLarge(size) => write!(f, "Array of {size} elements would be too large"),
7272
}
7373
}

0 commit comments

Comments
 (0)