Skip to content

Commit 20283f8

Browse files
committed
README.md: Update chapter numbers.
1 parent 4939101 commit 20283f8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,17 @@ terms of the MIT license. See [LICENSE-MIT](LICENSE-MIT) for details.
9999

100100
[mandel-readme]: https://github.com/ProgrammingRust/mandelbrot/blob/master/README.md
101101

102-
## Chapter 20: Macros
102+
## Chapter 20: Asynchronous Programming
103+
104+
- The chat client and server used as an extended example are in their own
105+
repository, at `https://github.com/ProgrammingRust/async-chat`.
106+
107+
## Chapter 21: Macros
103108

104109
- The `json-macro` directory holds the definition of the `json!` macro built in
105110
the section “The json! Macro”.
106111

107-
## Chapter 21: Unsafe Code
112+
## Chapter 22: Unsafe Code
108113

109114
- The `ascii` directory holds the `Ascii` type used as an example in the
110115
sections “Unsafe Blocks” and “Unsafe Functions”.
@@ -116,6 +121,8 @@ terms of the MIT license. See [LICENSE-MIT](LICENSE-MIT) for details.
116121
Pointers” section to illustrate pointer arithmetic and `std::ptr::read` and
117122
`std::ptr::write`.
118123

124+
## Chapter 22: Foreign Functions
125+
119126
- The `libgit2-rs` and `libgit2-rs-safe` directories contain the two versions of
120127
the program that uses Rust's foreign function interface to call functions from
121128
the `libgit2` C library. The version in `libgit2-rs` is written as a single

0 commit comments

Comments
 (0)