Skip to content

Commit 2658a90

Browse files
DarksonnThomasdezeeuw
authored andcommitted
Fix more typo
1 parent 78512a7 commit 2658a90

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
@@ -103,7 +103,7 @@ impl SockAddr {
103103
/// let mut addr_storage = SockAddrStorage::zeroed();
104104
/// let mut len = addr_storage.size_of();
105105
///
106-
/// // The `getsockname(2)` system call will intiliase `storage` for
106+
/// // The `getsockname(2)` system call will initialize `storage` for
107107
/// // us, setting `len` to the correct length.
108108
/// let res = unsafe {
109109
/// libc::getsockname(
@@ -160,7 +160,7 @@ impl SockAddr {
160160
/// // Initialise a `SocketAddr` by calling `getsockname(2)`.
161161
/// let (_, address) = unsafe {
162162
/// SockAddr::try_init(|addr_storage, len| {
163-
/// // The `getsockname(2)` system call will intiliase `storage` for
163+
/// // The `getsockname(2)` system call will initialize `storage` for
164164
/// // us, setting `len` to the correct length.
165165
/// if libc::getsockname(socket.as_raw_fd(), addr_storage.cast(), len) == -1 {
166166
/// Err(io::Error::last_os_error())

0 commit comments

Comments
 (0)