Update api.rst

Fixed a typo
Merge pull request #188 from davidyell/patch-2

Update api.rst