From d832583ed99d690cf1e9e2aeb9a77076b0863a6a Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 5 Aug 2019 01:11:01 -0700 Subject: [PATCH] Fix pluralization wording --- schala-lang/language/src/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/language/src/eval.rs b/schala-lang/language/src/eval.rs index f70a7c0..ff052b3 100644 --- a/schala-lang/language/src/eval.rs +++ b/schala-lang/language/src/eval.rs @@ -242,7 +242,7 @@ impl<'a> State<'a> { fn apply_data_constructor(&mut self, _type_name: Rc, name: Rc, tag: usize, arity: usize, args: Vec) -> EvalResult { if arity != args.len() { - return Err(format!("Data constructor {} requires {} args", name, arity)); + return Err(format!("Data constructor {} requires {} arg(s)", name, arity)); } let evaled_args = args.into_iter().map(|expr| self.expression(Node::Expr(expr))).collect::,_>>()?;