readme: format code samples

GitHub's Markdown renderer turns out to be stricter than I thought.