Skip to content

Commit 8dc9e66

Browse files
committed
io::Reader::chars_from_buf => chars_from_bytes (#3444)
1 parent b73f801 commit 8dc9e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/io.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<T: Reader> T : ReaderUtil {
7474
impl Reader {
7575
fn read_chars(n: uint) -> ~[char] {
7676
// 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) {
7878
let mut i = 0u;
7979
while i < vec::len(buf) {
8080
let b0 = buf[i];
@@ -118,7 +118,7 @@ impl Reader {
118118
break;
119119
}
120120
vec::push_all(buf, data);
121-
let (offset, nbreq) = chars_from_buf(buf, chars);
121+
let (offset, nbreq) = chars_from_bytes(buf, chars);
122122
let ncreq = n - vec::len(chars);
123123
// again we either know we need a certain number of bytes
124124
// to complete a character, or we make sure we don't

0 commit comments

Comments
 (0)