Spelling fixes (#571)

* docs: fix spelling and whitespace errors
This commit is contained in:
Ben Boeckel
2018-08-25 15:26:41 -04:00
committed by Toby Lawrence
parent 7dc6404726
commit 82c5baa09b
28 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ impl UnixDatagram {
/// Creates an unnamed pair of connected sockets.
///
/// This function will create a pair of interconnected unix sockets for
/// 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.
pub fn pair() -> io::Result<(UnixDatagram, UnixDatagram)> {
+1 -1
View File
@@ -12,7 +12,7 @@ use std::os::unix::io::{AsRawFd, RawFd};
use std::os::unix::net::{self, SocketAddr};
use std::path::Path;
/// A Unix socket which can accept connections from other unix sockets.
/// A Unix socket which can accept connections from other Unix sockets.
pub struct UnixListener {
io: PollEvented<mio_uds::UnixListener>,
}
+3 -3
View File
@@ -17,7 +17,7 @@ use std::os::unix::io::{AsRawFd, RawFd};
use std::os::unix::net::{self, SocketAddr};
use std::path::Path;
/// A structure representing a connected unix socket.
/// A structure representing a connected Unix socket.
///
/// This socket can be connected directly with `UnixStream::connect` or accepted
/// from a listener with `UnixListener::incoming`. Additionally, a pair of
@@ -43,7 +43,7 @@ enum State {
impl UnixStream {
/// Connects to the socket named by `path`.
///
/// This function will create a new unix socket and connect to the path
/// This function will create a new Unix socket and connect to the path
/// specified, associating the returned stream with the default event loop's
/// handle.
pub fn connect<P>(path: P) -> ConnectFuture
@@ -75,7 +75,7 @@ impl UnixStream {
/// Creates an unnamed pair of connected sockets.
///
/// This function will create a pair of interconnected unix sockets for
/// 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.
pub fn pair() -> io::Result<(UnixStream, UnixStream)> {