[DOC] Fixing typos in API documentation.