Skip to content

Commit ae3985b

Browse files
committed
small fix: a few typos
And auto discard extra `/n` on save
1 parent cbdc6c2 commit ae3985b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ch04/b-epoll-mio/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can run the example by simply writing `cargo run`
99

1010
## Note
1111

12-
There is one downside of having a local server on the same machine to mimmic
12+
There is one downside of having a local server on the same machine to mimic
1313
real life behavior. The network will never be slow, and packages will never
1414
need to be resent. Latency is not a problem either.
1515

@@ -20,11 +20,11 @@ so much data that the OS needs to do extra work to handle it.
2020

2121
You can reproduce it if you make som minor changes to the delayserver code
2222
as well as the program in main.rs as outlined below. Simply copy and replace
23-
the appropirate functions with these will do it.
23+
the appropriate functions with these will do it.
2424

2525

2626
First, change the `delay` function on the delayserver to return huge amount of fill data
27-
(enough to force a `WouldBlock` error on the reciever):
27+
(enough to force a `WouldBlock` error on the receiver):
2828

2929
```rust
3030
#[get("/{delay}/{message}")]
@@ -73,4 +73,3 @@ fn handle_events(events: &[Event], streams: &mut [TcpStream]) -> Result<usize> {
7373
Ok(handled_events)
7474
}
7575
```
76-

0 commit comments

Comments
 (0)