Fixed a API method name typo in the docs

Fixes #508