Fix copy-paste error in sys/hermit error message.
This commit is contained in:
parent
0b37bb2bc2
commit
82d3ef199f
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ impl TcpStream {
|
|||
|
||||
pub fn peek(&self, buf: &mut [u8]) -> io::Result<usize> {
|
||||
abi::tcpstream::peek(*self.0.as_inner(), buf)
|
||||
.map_err(|_| io::Error::new_const(ErrorKind::Unknown, &"set_nodelay failed"))
|
||||
.map_err(|_| io::Error::new_const(ErrorKind::Unknown, &"peek failed"))
|
||||
}
|
||||
|
||||
pub fn read(&self, buffer: &mut [u8]) -> io::Result<usize> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue