fix ReadlineStream peek_char using CharReader

This commit is contained in:
Mark
2023-06-29 14:58:15 -06:00
parent a6a0cef9fc
commit bb09de1805
2 changed files with 33 additions and 24 deletions

View File

@@ -111,7 +111,7 @@ impl<R> CharReader<R> {
}
impl<R: Read> CharReader<R> {
fn refresh_buffer(&mut self) -> io::Result<&[u8]> {
pub fn refresh_buffer(&mut self) -> io::Result<&[u8]> {
// If we've reached the end of our internal buffer then we need to fetch
// some more data from the underlying reader.
// Branch using `>=` instead of the more correct `==`