updated code snippets to use correct type
Merge pull request #1 from shiftkey/update-docs

updated code snippets to use correct type