mirror of
https://github.com/typst/typst
synced 2025-08-14 15:17:57 +08:00
Apply suggestions from code review
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
f82c5bb559
commit
3c9ddd8031
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user