fix typos in code sample