Skip to content

Commit 78512a7

Browse files
DarksonnThomasdezeeuw
authored andcommitted
Fix typo
1 parent 1d92130 commit 78512a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sockaddr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl SockAddr {
9999
///
100100
/// let socket = Socket::new(Domain::IPV4, Type::STREAM, None)?;
101101
///
102-
/// // Initialise a `SocketAddr` byte calling `getsockname(2)`.
102+
/// // Initialise a `SocketAddr` by calling `getsockname(2)`.
103103
/// let mut addr_storage = SockAddrStorage::zeroed();
104104
/// let mut len = addr_storage.size_of();
105105
///
@@ -157,7 +157,7 @@ impl SockAddr {
157157
///
158158
/// let socket = Socket::new(Domain::IPV4, Type::STREAM, None)?;
159159
///
160-
/// // Initialise a `SocketAddr` byte calling `getsockname(2)`.
160+
/// // Initialise a `SocketAddr` by calling `getsockname(2)`.
161161
/// let (_, address) = unsafe {
162162
/// SockAddr::try_init(|addr_storage, len| {
163163
/// // The `getsockname(2)` system call will intiliase `storage` for

0 commit comments

Comments
 (0)