Skip to content

Commit c02bd84

Browse files
mneumannbrson
authored andcommitted
---
yaml --- r: 42724 b: refs/heads/try c: d38939c h: refs/heads/master v: v3
1 parent c960f07 commit c02bd84

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 1ecdf3abc1cf08e76dbe309e1ee9255f899427f7
5+
refs/heads/try: d38939c7e8ca67a3991949cb17bf052b840d1aa4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libcore/io.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ impl<T: Reader> T : ReaderUtil {
185185
}
186186

187187
fn read_line(&self) -> ~str {
188-
let mut bytes = ~[];
188+
let mut line = ~"";
189189
loop {
190190
let ch = self.read_byte();
191191
if ch == -1 || ch == 10 { break; }
192-
bytes.push(ch as u8);
192+
str::push_char(&mut line, ch as char);
193193
}
194-
str::from_bytes(bytes)
194+
line
195195
}
196196

197197
fn read_chars(&self, n: uint) -> ~[char] {

0 commit comments

Comments
 (0)