diff --git a/src/sockaddr.rs b/src/sockaddr.rs index 5f37cf98..413dfbd3 100644 --- a/src/sockaddr.rs +++ b/src/sockaddr.rs @@ -99,11 +99,11 @@ impl SockAddr { /// /// let socket = Socket::new(Domain::IPV4, Type::STREAM, None)?; /// - /// // Initialise a `SocketAddr` byte calling `getsockname(2)`. + /// // Initialise a `SocketAddr` by calling `getsockname(2)`. /// let mut addr_storage = SockAddrStorage::zeroed(); /// let mut len = addr_storage.size_of(); /// - /// // The `getsockname(2)` system call will intiliase `storage` for + /// // The `getsockname(2)` system call will initialize `storage` for /// // us, setting `len` to the correct length. /// let res = unsafe { /// libc::getsockname( @@ -157,10 +157,10 @@ impl SockAddr { /// /// let socket = Socket::new(Domain::IPV4, Type::STREAM, None)?; /// - /// // Initialise a `SocketAddr` byte calling `getsockname(2)`. + /// // Initialise a `SocketAddr` by calling `getsockname(2)`. /// let (_, address) = unsafe { /// SockAddr::try_init(|addr_storage, len| { - /// // The `getsockname(2)` system call will intiliase `storage` for + /// // The `getsockname(2)` system call will initialize `storage` for /// // us, setting `len` to the correct length. /// if libc::getsockname(socket.as_raw_fd(), addr_storage.cast(), len) == -1 { /// Err(io::Error::last_os_error())