fixed a typo in the api docs
Merge pull request #2718 from gilesbowkett/typo-fix-for-api-docs

fixed a typo in the api docs