diff --git a/crates/typst-library/src/foundations/array.rs b/crates/typst-library/src/foundations/array.rs index 6ebfc6a1f..fe353a8ad 100644 --- a/crates/typst-library/src/foundations/array.rs +++ b/crates/typst-library/src/foundations/array.rs @@ -881,8 +881,8 @@ impl Array { Value::Int(x) => x.cmp(&0), x => bail!( span, - "expected integer from `compare` function; got {}", - x.repr() + "expected integer from `compare` function, got {}", + x.ty() ), }), None => ops::compare(&x, &y).at(span),