Update api.rst

is an -> if a