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 2feb911 commit 8787868Copy full SHA for 8787868
library/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