updated code snippets to use correct type

Because documentation is cool