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 7524427 commit ab17f7bCopy full SHA for ab17f7b
std/src/sys/hermit/net.rs
@@ -102,7 +102,7 @@ impl TcpStream {
102
103
pub fn peek(&self, buf: &mut [u8]) -> io::Result<usize> {
104
abi::tcpstream::peek(*self.0.as_inner(), buf)
105
- .map_err(|_| io::Error::new_const(ErrorKind::Unknown, &"set_nodelay failed"))
+ .map_err(|_| io::Error::new_const(ErrorKind::Unknown, &"peek failed"))
106
}
107
108
pub fn read(&self, buffer: &mut [u8]) -> io::Result<usize> {
0 commit comments