Skip to content

Commit 6d602fd

Browse files
committed
spelling, minor fixes
1 parent 8591608 commit 6d602fd

File tree

13 files changed

+15
-175
lines changed

13 files changed

+15
-175
lines changed

ch02/aa-os-threads/Cargo.toml renamed to ch02/a-os-threads/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "aa-os-threads"
2+
name = "a-os-threads"
33
version = "0.1.0"
44
edition = "2021"
55

File renamed without changes.

ch03/a-raw-syscall/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "aa-raw-syscall"
2+
name = "a-raw-syscall"
33
version = "0.1.0"
44
edition = "2021"
55

ch03/b-normal-syscall/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "ab-normal-syscall"
2+
name = "b-normal-syscall"
33
version = "0.1.0"
44
edition = "2021"
55

ch03/b-normal-syscall/README.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

ch04/a-epoll/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "b-epoll"
2+
name = "a-epoll"
33
version = "0.1.0"
44
edition = "2021"
55

ch04/a-epoll/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@ You can run the example by simply writing `cargo run`
77

88
## Note
99

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

1414
For example, encountering an actual `io::WouldBlock` error when reading
1515
from a `TcpStream` that's reported as ready is very hard, but if you
16-
want to test it out I manage to reliably get that error by simply transferring
16+
want to test it out I managed to reliably get that error by simply transferring
1717
so much data that the OS needs to do extra work to handle it.
1818

1919
You can reproduce it if you make som minor changes to the delayserver code
20-
as well as the program in main.rs as outlined below. Simply copy and replace
21-
the appropirate functions with these will do it.
22-
20+
as well as the program in `main.rs`` as outlined below. Simply copy and replace
21+
the appropriate functions with these will do it.
2322

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

2726
```rust
2827
#[get("/{delay}/{message}")]
@@ -71,4 +70,3 @@ fn handle_events(events: &[Event], streams: &mut [TcpStream]) -> Result<usize> {
7170
Ok(handled_events)
7271
}
7372
```
74-

ch05/d-fibers-closure/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ cargo run
4343
The implementation is wildly unsafe and only focuses on getting a working example running.
4444
The focus is on explaining the concepts as simply as possible and not best practices.
4545

46-
While a fiber implementation like this will never be possible to do fully in safe Rust, there are many ways to make it safer, and it's a good readers excercise to do so. Just beware that you might have to change the API somewhat to make it safer since mutating global statics using raw pointers (and any mutating of what Rust assumes are exclusive borrows using the tricks we do in the `call` function) are a shure way to get undefined behavior and this example is no exception to that.
46+
While a fiber implementation like this will never be possible to do fully in safe Rust, there are many ways to make it safer, and it's a good readers exercise to do so. Just beware that you might have to change the API somewhat to make it safer since mutating global statics using raw pointers (and any mutating of what Rust assumes are exclusive borrows using the tricks we do in the `call` function) are a sure way to get undefined behavior and this example is no exception to that.

ch08/a-coroutine/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "b-reactor-executor"
2+
name = "a-coroutine"
33
version = "0.1.0"
44
edition = "2021"
55

ch09/c-reactor-executor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "b-reactor-executor"
2+
name = "c-reactor-executor"
33
version = "0.1.0"
44
edition = "2021"
55

0 commit comments

Comments
 (0)