File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ pub use self::socketaddr::SocketAddr;
33
44/// Get the `sun_path` field offset of `sockaddr_un` for the target OS.
55///
6- /// On Linux, this funtion equates to the same value as
6+ /// On Linux, this function equates to the same value as
77/// `size_of::<sa_family_t>()`, but some other implementations include
88/// other fields before `sun_path`, so the expression more portably
99/// describes the size of the address structure.
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ cfg_io_source! {
215215 let fd = File :: from_raw_handle( afd_helper_handle as RawHandle ) ;
216216 // Increment by 2 to reserve space for other types of handles.
217217 // Non-AFD types (currently only NamedPipe), use odd numbered
218- // tokens. This allows the selector to differentate between them
218+ // tokens. This allows the selector to differentiate between them
219219 // and dispatch events accordingly.
220220 let token = NEXT_TOKEN . fetch_add( 2 , Ordering :: Relaxed ) + 2 ;
221221 let afd = Afd { fd } ;
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ fn from_overlapped(ptr: *mut OVERLAPPED) -> Pin<Arc<Mutex<SockState>>> {
317317#[ cfg( debug_assertions) ]
318318static NEXT_ID : AtomicUsize = AtomicUsize :: new ( 0 ) ;
319319
320- /// Windows implementaion of `sys::Selector`
320+ /// Windows implementation of `sys::Selector`
321321///
322322/// Edge-triggered event notification is simulated by resetting internal event flag of each socket state `SockState`
323323/// and setting all events back by intercepting all requests that could cause `io::ErrorKind::WouldBlock` happening.
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ fn listen_then_close() {
407407
408408 for event in & events {
409409 if event. token ( ) == Token ( 1 ) {
410- panic ! ( "recieved ready() on a closed TcpListener" )
410+ panic ! ( "received ready() on a closed TcpListener" )
411411 }
412412 }
413413}
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ fn unix_listener_deregister() {
135135
136136#[ cfg( target_os = "linux" ) ]
137137#[ test]
138- fn unix_listener_abstract_namesapce ( ) {
138+ fn unix_listener_abstract_namespace ( ) {
139139 use rand:: Rng ;
140140 let num: u64 = rand:: thread_rng ( ) . gen ( ) ;
141141 let name = format ! ( "\u{0000} -mio-abstract-uds-{}" , num) ;
You can’t perform that action at this time.
0 commit comments