We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b73f801 commit 8dc9e66Copy full SHA for 8dc9e66
src/libcore/io.rs
@@ -74,7 +74,7 @@ impl<T: Reader> T : ReaderUtil {
74
impl Reader {
75
fn read_chars(n: uint) -> ~[char] {
76
// returns the (consumed offset, n_req), appends characters to &chars
77
- fn chars_from_buf(buf: ~[u8], &chars: ~[char]) -> (uint, uint) {
+ fn chars_from_bytes(buf: ~[u8], &chars: ~[char]) -> (uint, uint) {
78
let mut i = 0u;
79
while i < vec::len(buf) {
80
let b0 = buf[i];
@@ -118,7 +118,7 @@ impl Reader {
118
break;
119
}
120
vec::push_all(buf, data);
121
- let (offset, nbreq) = chars_from_buf(buf, chars);
+ let (offset, nbreq) = chars_from_bytes(buf, chars);
122
let ncreq = n - vec::len(chars);
123
// again we either know we need a certain number of bytes
124
// to complete a character, or we make sure we don't
0 commit comments