diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-18 10:37:52 -0400 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2017-03-23 23:04:36 -0400 |
| commit | 8fba638b08eb85cda1bd2a4e855f7f76727dfc52 (patch) | |
| tree | 3b9a40429c08af0647bcdf2e1dd8738c05121caa /src/rustllvm/RustWrapper.cpp | |
| parent | 4853584000c2e71710318b1ff3393b6be25c076a (diff) | |
| download | rust-8fba638b08eb85cda1bd2a4e855f7f76727dfc52.tar.gz rust-8fba638b08eb85cda1bd2a4e855f7f76727dfc52.zip | |
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
