Skip to content

Commit 82d3ef1

Browse files
committed
Fix copy-paste error in sys/hermit error message.
1 parent 0b37bb2 commit 82d3ef1

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/hermit

1 file changed

+1
-1
lines changed

library/std/src/sys/hermit/net.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl TcpStream {
102102

103103
pub fn peek(&self, buf: &mut [u8]) -> io::Result<usize> {
104104
abi::tcpstream::peek(*self.0.as_inner(), buf)
105-
.map_err(|_| io::Error::new_const(ErrorKind::Unknown, &"set_nodelay failed"))
105+
.map_err(|_| io::Error::new_const(ErrorKind::Unknown, &"peek failed"))
106106
}
107107

108108
pub fn read(&self, buffer: &mut [u8]) -> io::Result<usize> {

0 commit comments

Comments
 (0)