From 20283f8a98cb403b618fb4421d224a48a8b1458a Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 13 Jun 2021 16:32:23 -0700 Subject: [PATCH] README.md: Update chapter numbers. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 08b174a..8a53dc1 100644 --- a/README.md +++ b/README.md @@ -99,12 +99,17 @@ terms of the MIT license. See [LICENSE-MIT](LICENSE-MIT) for details. [mandel-readme]: https://github.com/ProgrammingRust/mandelbrot/blob/master/README.md -## Chapter 20: Macros +## Chapter 20: Asynchronous Programming + +- The chat client and server used as an extended example are in their own + repository, at `https://github.com/ProgrammingRust/async-chat`. + +## Chapter 21: Macros - The `json-macro` directory holds the definition of the `json!` macro built in the section “The json! Macro”. -## Chapter 21: Unsafe Code +## Chapter 22: Unsafe Code - The `ascii` directory holds the `Ascii` type used as an example in the sections “Unsafe Blocks” and “Unsafe Functions”. @@ -116,6 +121,8 @@ terms of the MIT license. See [LICENSE-MIT](LICENSE-MIT) for details. Pointers” section to illustrate pointer arithmetic and `std::ptr::read` and `std::ptr::write`. +## Chapter 22: Foreign Functions + - The `libgit2-rs` and `libgit2-rs-safe` directories contain the two versions of the program that uses Rust's foreign function interface to call functions from the `libgit2` C library. The version in `libgit2-rs` is written as a single