mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
uds: minor doc fix in UnixStream and UnixDatagram (#754)
This commit is contained in:
committed by
Carl Lerche
parent
33a216e4c1
commit
c83355235c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user