change some doc examples to iex style
Merge pull request #2847 from jw2013/doc-iex

change some doc examples to iex style