Fixes #1254, typo in api doc