fix typo in code snippet