File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/snap-stage3/src/libcore Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: b73f801cc11ccddfe973112a040807cd164893f8
4
+ refs/heads/snap-stage3: 8dc9e6643ae73c571c0543d3aed2d7461ded9289
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl<T: Reader> T : ReaderUtil {
74
74
impl Reader {
75
75
fn read_chars ( n : uint ) -> ~[ char ] {
76
76
// returns the (consumed offset, n_req), appends characters to &chars
77
- fn chars_from_buf ( buf : ~[ u8 ] , & chars: ~[ char ] ) -> ( uint , uint ) {
77
+ fn chars_from_bytes ( buf : ~[ u8 ] , & chars: ~[ char ] ) -> ( uint , uint ) {
78
78
let mut i = 0 u;
79
79
while i < vec:: len ( buf) {
80
80
let b0 = buf[ i] ;
@@ -118,7 +118,7 @@ impl Reader {
118
118
break ;
119
119
}
120
120
vec:: push_all ( buf, data) ;
121
- let ( offset, nbreq) = chars_from_buf ( buf, chars) ;
121
+ let ( offset, nbreq) = chars_from_bytes ( buf, chars) ;
122
122
let ncreq = n - vec:: len ( chars) ;
123
123
// again we either know we need a certain number of bytes
124
124
// to complete a character, or we make sure we don't
You can’t perform that action at this time.
0 commit comments