File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 1ecdf3abc1cf08e76dbe309e1ee9255f899427f7
4
+ refs/heads/snap-stage3: d38939c7e8ca67a3991949cb17bf052b840d1aa4
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -185,13 +185,13 @@ impl<T: Reader> T : ReaderUtil {
185
185
}
186
186
187
187
fn read_line ( & self ) -> ~str {
188
- let mut bytes = ~[ ] ;
188
+ let mut line = ~"" ;
189
189
loop {
190
190
let ch = self . read_byte ( ) ;
191
191
if ch == -1 || ch == 10 { break ; }
192
- bytes . push ( ch as u8 ) ;
192
+ str :: push_char ( & mut line , ch as char ) ;
193
193
}
194
- str :: from_bytes ( bytes )
194
+ line
195
195
}
196
196
197
197
fn read_chars ( & self , n : uint ) -> ~[ char ] {
You can’t perform that action at this time.
0 commit comments