Skip to content

Commit 4c725a1

Browse files
committed
Fix int conversion error message
1 parent 19e0cbe commit 4c725a1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

components/rust/changepoint/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl fmt::Display for ChangepointError {
5656
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
5757
match self {
5858
Self::NormalGammaError(e) => write!(f, "invalid Normal Gamma distribution: {}", e),
59-
Self::TryFromIntError(e) => write!(f, "overflow converting to u32: {}", e),
59+
Self::TryFromIntError(e) => write!(f, "overflow converting to usize: {}", e),
6060
Self::InvalidMaxLag(ml) => write!(f, "invalid max lag: {}", ml),
6161
}
6262
}

go/changepoint/changepoint.wasm

8 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)