fix: typos
This commit is contained in:
parent
a3ebe46350
commit
a52e03d052
@ -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
|
||||
```
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user