From 355643f538e9e5cbb193b050af47867ac0eedb51 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 5 Apr 2020 18:46:19 -0400 Subject: [PATCH] proper error message for builtin fn expecting 0 args --- src/builtin/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin/macros.rs b/src/builtin/macros.rs index 165dbee..9710807 100644 --- a/src/builtin/macros.rs +++ b/src/builtin/macros.rs @@ -37,7 +37,7 @@ macro_rules! named_arg { macro_rules! max_args { ($args:ident, $count:literal) => { if $args.len() > $count { - if $count > 1 { + if $count != 1 { return Err(format!( "Only {} arguments allowed, but {} were passed.", $count,