fixed typos in code examples

Self-explanatory.