fix: typos

This commit is contained in:
minhtrannhat 2024-06-30 17:24:56 -04:00
parent a3ebe46350
commit a52e03d052
Signed by: minhtrannhat
GPG Key ID: E13CFA85C53F8062
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ queue.registry().register(&stream, id, ...).unwrap();
// store the to be tracked events // store the to be tracked events
let mut events = Vec::with_capacity(1); 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(); queue.poll(&mut events, None).unwrap();
//...data is ready on one of the tracked streams //...data is ready on one of the tracked streams
``` ```

View File

@ -16,7 +16,7 @@ pub struct Registry {
impl Registry { impl Registry {
// Register interest by adding it // Register interest by adding it
// TcpStream is a high level representation of a TCP socket file descriptor // 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<()> { pub fn register(&self, source: &TcpStream, token: usize, interests: i32) -> Result<()> {
match unsafe { match unsafe {
ffi::epoll_ctl( ffi::epoll_ctl(