Skip to content

Commit c224b8f

Browse files
wutchzoneThomasdezeeuw
authored andcommitted
Fix typos
1 parent bc54c25 commit c224b8f

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/sys/unix/uds/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

src/sys/windows/afd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 };

src/sys/windows/selector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn from_overlapped(ptr: *mut OVERLAPPED) -> Pin<Arc<Mutex<SockState>>> {
317317
#[cfg(debug_assertions)]
318318
static 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.

tests/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

tests/unix_listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)