From 3c9ddd8031a4953f1d3c6365d5d9f0056093af5c Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Thu, 23 Jan 2025 14:16:55 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Laurenz --- crates/typst-library/src/foundations/array.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),