about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-25 09:30:28 -0700
committerGitHub <noreply@github.com>2017-03-25 09:30:28 -0700
commitf43c336e7453ff8216671f44328841d9a3828d2b (patch)
tree9fc8724c36c4972e9e5dc727fc97cf997b08077b /src/rustllvm/RustWrapper.cpp
parent49c67bd632e961a57863805e5d0a400f97da9b93 (diff)
parent8fba638b08eb85cda1bd2a4e855f7f76727dfc52 (diff)
downloadrust-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