fix two typos in code examples in the doc.

I just stumbled upon two typos in the generated documentation.