mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix copy-paste error in sys/hermit error message.
This commit is contained in:
parent
0b37bb2bc2
commit
82d3ef199f
@ -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…
Reference in New Issue
Block a user