diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-20 09:11:56 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-20 09:11:56 -0800 |
| commit | 7736985f78e43aa2e7f45c5ad19a520c97f45d8f (patch) | |
| tree | bb5b4558e131a77ab70b7dfce50c03386966e303 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | 879e8aa7be06a53cd6cd9cc714e85a13c909c0ea (diff) | |
| download | rust-7736985f78e43aa2e7f45c5ad19a520c97f45d8f.tar.gz rust-7736985f78e43aa2e7f45c5ad19a520c97f45d8f.zip | |
Return a buffered stdin by default.
One of the most common ways to use the stdin stream is to read it line by line for a small program. In order to facilitate this common usage pattern, this commit changes the stdin() function to return a BufferedReader by default. A new `stdin_raw()` method was added to get access to the raw unbuffered stream. I have not changed the stdout or stderr methods because they are currently unable to flush in their destructor, but #12403 should have just fixed that.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
