Skip to content

Commit bb2e8a8

Browse files
committed
Merge pull request chenshuo#38 from huahang/patch-1
Update a comment in Buffer.cc
2 parents f9da26d + 854369f commit bb2e8a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎muduo/net/Buffer.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ssize_t Buffer::readFd(int fd, int* savedErrno)
3333
vec[1].iov_base = extrabuf;
3434
vec[1].iov_len = sizeof extrabuf;
3535
// when there is enough space in this buffer, don't read into extrabuf.
36-
// by doing this, we read 128k-1 bytes at most
36+
// when extrabuf is used, we read 128k-1 bytes at most.
3737
const int iovcnt = (writable < sizeof extrabuf) ? 2 : 1;
3838
const ssize_t n = sockets::readv(fd, vec, iovcnt);
3939
if (n < 0)

0 commit comments

Comments
 (0)