Fix pluralization wording

This commit is contained in:
greg 2019-08-05 01:11:01 -07:00
parent 87ecc6f0cb
commit d832583ed9

View File

@ -242,7 +242,7 @@ impl<'a> State<'a> {
fn apply_data_constructor(&mut self, _type_name: Rc<String>, name: Rc<String>, tag: usize, arity: usize, args: Vec<Expr>) -> EvalResult<Node> {
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::<Result<Vec<Node>,_>>()?;