fixed docstring for arrity()
This commit is contained in:
5
ee.c
5
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:
|
||||
|
||||
Reference in New Issue
Block a user