Fix arity check error message formatting

This commit is contained in:
kayomn 2023-11-06 20:16:22 +00:00
parent 8f3a33a52b
commit 83680607b7
1 changed files with 2 additions and 2 deletions

View File

@ -533,8 +533,8 @@ pub const RuntimeEnv = struct {
if (arg_count < arity) {
return self.raise(error.BadOperation, "expected `{expected}` {noun}, {provided} provided", .{
.expected = arity,
.provided = arg_count,
.expected = arg_count,
.provided = arity,
.noun = if (arity == 1) "argument" else "arguments",
});
}