Fix typos in API documentation.