Tweak code style in example snippets in read me. [ci skip]