Fix typos in general.rst

Fix typos in API documentation