fix two typos in code examples in the doc.
Merge pull request #36 from gourlaysama/fix/typos

fix two typos in code examples in the doc.