Update api.rst

is -> if