typo: Some typo in net/socket/mod.rs

This commit is contained in:
hongwen.chw
2024-06-17 10:49:00 +08:00
committed by Tate, Hongliang Tian
parent 3123222995
commit 75e9382d57

View File

@ -29,7 +29,7 @@ pub trait Socket: FileLike + Send + Sync {
/// Listen for connections on a socket /// Listen for connections on a socket
fn listen(&self, backlog: usize) -> Result<()> { fn listen(&self, backlog: usize) -> Result<()> {
return_errno_with_message!(Errno::EOPNOTSUPP, "connect() is not supported"); return_errno_with_message!(Errno::EOPNOTSUPP, "listen() is not supported");
} }
/// Accept a connection on a socket /// Accept a connection on a socket
@ -75,6 +75,6 @@ pub trait Socket: FileLike + Send + Sync {
remote: Option<SocketAddr>, remote: Option<SocketAddr>,
flags: SendRecvFlags, flags: SendRecvFlags,
) -> Result<usize> { ) -> Result<usize> {
return_errno_with_message!(Errno::EOPNOTSUPP, "recvfrom() is not supported"); return_errno_with_message!(Errno::EOPNOTSUPP, "sendto() is not supported");
} }
} }