fixed docstring for arrity()

This commit is contained in:
Jon Lewis
2018-06-29 11:37:30 -05:00
parent 4da785e925
commit 7396ec8bf1

5
ee.c
View File

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