File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ impl SockAddr {
258
258
/// Returns the initialised storage bytes.
259
259
fn as_bytes ( & self ) -> & [ u8 ] {
260
260
// 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
262
262
// bytes by using `self.len`.
263
263
unsafe { std:: slice:: from_raw_parts ( self . as_ptr ( ) . cast ( ) , self . len as usize ) }
264
264
}
Original file line number Diff line number Diff line change @@ -1053,7 +1053,7 @@ impl Socket {
1053
1053
1054
1054
/// Set value for the `SO_REUSEADDR` option on this socket.
1055
1055
///
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
1057
1057
/// addresses. For IPv4 sockets this means that a socket may bind even when
1058
1058
/// there's a socket already listening on this port.
1059
1059
pub fn set_reuse_address ( & self , reuse : bool ) -> io:: Result < ( ) > {
@@ -2143,7 +2143,7 @@ impl Read for Socket {
2143
2143
#[ cfg( not( target_os = "redox" ) ) ]
2144
2144
fn read_vectored ( & mut self , bufs : & mut [ IoSliceMut < ' _ > ] ) -> io:: Result < usize > {
2145
2145
// 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`
2147
2147
// promises to not write unitialised bytes to the `bufs` and pass it
2148
2148
// directly to the `recvmsg` system call, so this is safe.
2149
2149
let bufs = unsafe { & mut * ( bufs as * mut [ IoSliceMut < ' _ > ] as * mut [ MaybeUninitSlice < ' _ > ] ) } ;
You can’t perform that action at this time.
0 commit comments