diff --git a/src/builtin/macros.rs b/src/builtin/macros.rs index 5d50fe7..9dbcfdc 100644 --- a/src/builtin/macros.rs +++ b/src/builtin/macros.rs @@ -28,7 +28,11 @@ macro_rules! decl { macro_rules! max_args { ($args:ident, $count:literal) => { if $args.len() > $count { - return Err(format!("Only {} argument allowed, but {} were passed.", $count, $args.len()).into()); + if $count > 1 { + return Err(format!("Only {} arguments allowed, but {} were passed.", $count, $args.len()).into()); + } else { + return Err(format!("Only {} argument allowed, but {} were passed.", $count, $args.len()).into()); + } } }; } \ No newline at end of file