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.
1 parent ba39794 commit 9d56b91Copy full SHA for 9d56b91
text/0000-read-buf.md
@@ -221,7 +221,7 @@ impl Read for TcpStream {
221
222
// We're just delegating to the libc read function, which returns an `isize`. The return value indicates
223
// an error if negative and the number of bytes read otherwise.
224
- let nread = libc::read(self.fd, unwritten.as_mut_ptr().cast::<libc::c_void>(), unwritten.len());
+ let nread = libc::read(self.fd, unfilled.as_mut_ptr().cast::<libc::c_void>(), unfilled.len());
225
226
if nread < 0 {
227
return Err(io::Error::last_os_error());
0 commit comments