Update api.txt

Fix a grammar error.