Skip to content

Commit

Permalink
Fix #18
Browse files Browse the repository at this point in the history
- fix copy paste error in untested code path
  • Loading branch information
tingerrr committed Jun 18, 2024
1 parent 594e348 commit 0c6205c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/assert.typ
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
let given-func = element.func()
expected-funcs = expected-funcs.pos()
let message = _core.or-default(check: auto, message, () => if expected-funcs.len() == 1 {
_core.fmt("`{}` must be a `{}`, was `{}`", name, expected-funcs.first(), given-type)
_core.fmt("`{}` must be a `{}`, was `{}`", name, expected-funcs.first(), given-func)
} else {
_core.fmt(
"`{}` must be one of a {}, was `{}`",
name,
expected-funcs.map(_core.fmt.with("`{}`")).join(", ", last: " or a"),
given-type,
given-func,
)
})

Expand Down

0 comments on commit 0c6205c

Please sign in to comment.