Skip to content

Commit

Permalink
chore: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored and notgull committed Sep 8, 2024
1 parent 1ee697a commit 7531821
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/iocp/afd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ impl<T> OnceCell<T> {
}

pin_project_lite::pin_project! {
/// An I/O status block paired with some auxillary data.
/// An I/O status block paired with some auxiliary data.
#[repr(C)]
pub(super) struct IoStatusBlock<T> {
// The I/O status block.
Expand All @@ -577,7 +577,7 @@ pin_project_lite::pin_project! {
// Whether or not the block is in use.
in_use: AtomicBool,

// The auxillary data.
// The auxiliary data.
#[pin]
data: T,

Expand Down
4 changes: 2 additions & 2 deletions src/iocp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! I/O Completion Ports is a completion-based API rather than a polling-based API, like
//! epoll or kqueue. Therefore, we have to adapt the IOCP API to the crate's API.
//!
//! WinSock is powered by the Auxillary Function Driver (AFD) subsystem, which can be
//! WinSock is powered by the Auxiliary Function Driver (AFD) subsystem, which can be
//! accessed directly by using unstable `ntdll` functions. AFD exposes features that are not
//! available through the normal WinSock interface, such as IOCTL_AFD_POLL. This function is
//! similar to the exposed `WSAPoll` method. However, once the targeted socket is "ready",
Expand All @@ -13,7 +13,7 @@
//! to the one Windows expects. When a device is added to the `Poller`, an IOCTL_AFD_POLL
//! operation is started and queued to the IOCP. To modify a currently registered device
//! (e.g. with `modify()` or `delete()`), the ongoing POLL is cancelled and then restarted
//! with new parameters. Whn the POLL eventually completes, the packet is posted to the IOCP.
//! with new parameters. When the POLL eventually completes, the packet is posted to the IOCP.
//! From here it's a simple matter of using `GetQueuedCompletionStatusEx` to read the packets
//! from the IOCP and react accordingly. Notifying the poller is trivial, because we can
//! simply post a packet to the IOCP to wake it up.
Expand Down

0 comments on commit 7531821

Please sign in to comment.