diff options
| author | bors <bors@rust-lang.org> | 2013-04-18 08:09:55 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-18 08:09:55 -0700 |
| commit | e4f35a7326e4ea2af9b6000080819208a7f6d722 (patch) | |
| tree | f3a2e90195e5665913938a47762cc12943755300 /src/rt/rust_run_program.cpp | |
| parent | 24fb719b8c0cf5c508799f50fefdf3d7a8cf0ed7 (diff) | |
| parent | 19cc352302838dd379c0d4a335a093fbfd0df64b (diff) | |
| download | rust-e4f35a7326e4ea2af9b6000080819208a7f6d722.tar.gz rust-e4f35a7326e4ea2af9b6000080819208a7f6d722.zip | |
auto merge of #5933 : huonw/rust/core-read-until-byte, r=thestinger
`read_until` is just doing a bytewise comparison. This means the following program prints `xyå12`, not `xy`, which it should if it was actually checking chars.
```rust
fn main() {
do io::with_str_reader("xyå12") |r| {
io::println(r.read_until('å', false));
}
}
```
This patch makes the type of read_until match what it is actually doing.
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
