fix docs to use result
Merge pull request #7 from hoist/feature/docs

fix docs to use result