diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-25 09:30:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-25 09:30:28 -0700 |
| commit | f43c336e7453ff8216671f44328841d9a3828d2b (patch) | |
| tree | 9fc8724c36c4972e9e5dc727fc97cf997b08077b /src/rustllvm/RustWrapper.cpp | |
| parent | 49c67bd632e961a57863805e5d0a400f97da9b93 (diff) | |
| parent | 8fba638b08eb85cda1bd2a4e855f7f76727dfc52 (diff) | |
| download | rust-f43c336e7453ff8216671f44328841d9a3828d2b.tar.gz rust-f43c336e7453ff8216671f44328841d9a3828d2b.zip | |
Rollup merge of #40642 - frewsxcv:io-bufread-doc-examples, r=GuillaumeGomez
Rewrite `io::BufRead` doc examples to better demonstrate behaviors. Prior to this commit, most of the `BufRead` examples used `StdinLock` to demonstrate how certain `BufRead` methods worked. Using `StdinLock` is not ideal since: * Relying on run-time data means we can't show concrete examples of how these methods work up-front. The user is required to run them in order to see how they behave. * If the user tries to run an example in the playpen, it won't work because the playpen doesn't support user input to stdin.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
