Refine documentation according to latest code

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
This commit is contained in:
Liu Jiang
2020-03-23 21:23:12 +08:00
committed by Adrian Catangiu
parent fbb4d5392a
commit aefdd1be46
3 changed files with 4 additions and 6 deletions

View File

@@ -114,7 +114,7 @@ impl<T: Read + Write> HttpConnection<T> {
}
}
// Reads a maximum of 1024 bytes from the stream into `buffer`.
// Reads a maximum of `BUFFER_SIZE` bytes from the stream into `buffer`.
// The return value represents the end index of what we have just appended.
fn read_bytes(&mut self) -> Result<usize, ConnectionError> {
// Append new bytes to what we already have in the buffer.