Update api.rst

Fixed a typo