From a52e03d05281154efb88c6560a1396074018dad8 Mon Sep 17 00:00:00 2001 From: minhtrannhat Date: Sun, 30 Jun 2024 17:24:56 -0400 Subject: [PATCH] fix: typos --- README.md | 2 +- src/poll.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 880a605..e23f75d 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ queue.registry().register(&stream, id, ...).unwrap(); // store the to be tracked events let mut events = Vec::with_capacity(1); -// This will block the curren thread +// This will block the current thread queue.poll(&mut events, None).unwrap(); //...data is ready on one of the tracked streams ``` diff --git a/src/poll.rs b/src/poll.rs index e7fd86a..3671eda 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -16,7 +16,7 @@ pub struct Registry { impl Registry { // Register interest by adding it // TcpStream is a high level representation of a TCP socket file descriptor - // token is too differentiate from different file descriptor, as a label + // token is to differentiate from different file descriptor, as a label pub fn register(&self, source: &TcpStream, token: usize, interests: i32) -> Result<()> { match unsafe { ffi::epoll_ctl(