proper error message for builtin fn expecting 0 args

This commit is contained in:
ConnorSkees 2020-04-05 18:46:19 -04:00
parent 50778bd743
commit 355643f538

View File

@ -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,