From c83355235cbcf5cf6583f18d21750f3463babb7d Mon Sep 17 00:00:00 2001 From: Felix Obenhuber Date: Fri, 16 Nov 2018 23:53:19 +0100 Subject: [PATCH] uds: minor doc fix in UnixStream and UnixDatagram (#754) --- tokio-uds/src/datagram.rs | 4 ++-- tokio-uds/src/stream.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tokio-uds/src/datagram.rs b/tokio-uds/src/datagram.rs index b68444da9..7d579d3b6 100644 --- a/tokio-uds/src/datagram.rs +++ b/tokio-uds/src/datagram.rs @@ -31,8 +31,8 @@ impl UnixDatagram { /// Creates an unnamed pair of connected sockets. /// /// This function will create a pair of interconnected Unix sockets for - /// communicating back and forth between one another. Each socket will be - /// associated with the event loop whose handle is also provided. + /// communicating back and forth between one another. Each socket will + /// be associated with the default event loop's handle. pub fn pair() -> io::Result<(UnixDatagram, UnixDatagram)> { let (a, b) = mio_uds::UnixDatagram::pair()?; let a = UnixDatagram::new(a); diff --git a/tokio-uds/src/stream.rs b/tokio-uds/src/stream.rs index 77363c80d..7098c85fe 100644 --- a/tokio-uds/src/stream.rs +++ b/tokio-uds/src/stream.rs @@ -76,8 +76,8 @@ impl UnixStream { /// Creates an unnamed pair of connected sockets. /// /// This function will create a pair of interconnected Unix sockets for - /// communicating back and forth between one another. Each socket will be - /// associated with the event loop whose handle is also provided. + /// communicating back and forth between one another. Each socket will + /// be associated with the default event loop's handle. pub fn pair() -> io::Result<(UnixStream, UnixStream)> { let (a, b) = try!(mio_uds::UnixStream::pair()); let a = UnixStream::new(a); @@ -111,7 +111,7 @@ impl UnixStream { self.io.get_ref().peer_addr() } - /// Returns effective credentials of the process which called `connect` or `socketpair`. + /// Returns effective credentials of the process which called `connect` or `pair`. pub fn peer_cred(&self) -> io::Result { ucred::get_peer_cred(self) }