From 7396ec8bf14add2810df20a45014f3c8989a4560 Mon Sep 17 00:00:00 2001 From: Jon Lewis Date: Fri, 29 Jun 2018 11:37:30 -0500 Subject: [PATCH] fixed docstring for arrity() --- ee.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ee.c b/ee.c index fd6a8b7..bd1e503 100644 --- a/ee.c +++ b/ee.c @@ -49,8 +49,9 @@ isNum(const char* query){ int // Dependency of main() arrity(const char query){ /* - * If query is a string, isOperator iff query is a - * supported operator. + * If query is a string corresponding to an operator in {+,x,-,/,^,!}, then + * arrity(query) is the number of operands required by the operator. + * If query is any other string, arrity(query) is zero. */ return (query == '+')? 2: (query == 'x')? 2: