We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BufReader::peek
1 parent b3bc885 commit 5509c52Copy full SHA for 5509c52
std/src/io/buffered/bufreader/buffer.rs
@@ -123,7 +123,6 @@ impl Buffer {
123
/// Remove bytes that have already been read from the buffer.
124
pub fn backshift(&mut self) {
125
self.buf.copy_within(self.pos.., 0);
126
- self.initialized -= self.pos;
127
self.filled -= self.pos;
128
self.pos = 0;
129
}
0 commit comments