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 {
103
103
/// let mut addr_storage = SockAddrStorage::zeroed();
104
104
/// let mut len = addr_storage.size_of();
105
105
///
106
- /// // The `getsockname(2)` system call will intiliase `storage` for
106
+ /// // The `getsockname(2)` system call will initialize `storage` for
107
107
/// // us, setting `len` to the correct length.
108
108
/// let res = unsafe {
109
109
/// libc::getsockname(
@@ -160,7 +160,7 @@ impl SockAddr {
160
160
/// // Initialise a `SocketAddr` by calling `getsockname(2)`.
161
161
/// let (_, address) = unsafe {
162
162
/// 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
164
164
/// // us, setting `len` to the correct length.
165
165
/// if libc::getsockname(socket.as_raw_fd(), addr_storage.cast(), len) == -1 {
166
166
/// Err(io::Error::last_os_error())
You can’t perform that action at this time.
0 commit comments