fix typos in promise code example