File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ impl SockAddr {
258258 /// Returns the initialised storage bytes.
259259 fn as_bytes ( & self ) -> & [ u8 ] {
260260 // SAFETY: `self.storage` is a C struct which can always be treated a
261- // slice of bytes. Futhermore we ensure we don't read any unitialised
261+ // slice of bytes. Furthermore, we ensure we don't read any unitialised
262262 // bytes by using `self.len`.
263263 unsafe { std:: slice:: from_raw_parts ( self . as_ptr ( ) . cast ( ) , self . len as usize ) }
264264 }
Original file line number Diff line number Diff line change @@ -1053,7 +1053,7 @@ impl Socket {
10531053
10541054 /// Set value for the `SO_REUSEADDR` option on this socket.
10551055 ///
1056- /// This indicates that futher calls to `bind` may allow reuse of local
1056+ /// This indicates that further calls to `bind` may allow reuse of local
10571057 /// addresses. For IPv4 sockets this means that a socket may bind even when
10581058 /// there's a socket already listening on this port.
10591059 pub fn set_reuse_address ( & self , reuse : bool ) -> io:: Result < ( ) > {
@@ -2143,7 +2143,7 @@ impl Read for Socket {
21432143 #[ cfg( not( target_os = "redox" ) ) ]
21442144 fn read_vectored ( & mut self , bufs : & mut [ IoSliceMut < ' _ > ] ) -> io:: Result < usize > {
21452145 // Safety: both `IoSliceMut` and `MaybeUninitSlice` promise to have the
2146- // same layout, that of `iovec`/`WSABUF`. Furthermore `recv_vectored`
2146+ // same layout, that of `iovec`/`WSABUF`. Furthermore, `recv_vectored`
21472147 // promises to not write unitialised bytes to the `bufs` and pass it
21482148 // directly to the `recvmsg` system call, so this is safe.
21492149 let bufs = unsafe { & mut * ( bufs as * mut [ IoSliceMut < ' _ > ] as * mut [ MaybeUninitSlice < ' _ > ] ) } ;
You can’t perform that action at this time.
0 commit comments