Format example code in README in a code block.

I noticed someone on Stack Overflow had copied and pasted the example code in the README as-is, including arrow glyphs and smartened quotes, because the original wasn't wrapped in a code block. I figured formatting the example code as code would make life easier for people.