Fixing typo in api.rst