File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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())
You can’t perform that action at this time.
0 commit comments