From 36366f49164079814624226e5cc0962251eacf45 Mon Sep 17 00:00:00 2001 From: Johann Pardanaud Date: Thu, 18 Jun 2026 12:33:58 +0200 Subject: [PATCH] Fix typo when mentioning listing in ch20-05 Mentioned listing was 20-29 but the correct one is 20-35. --- src/ch20-05-macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch20-05-macros.md b/src/ch20-05-macros.md index 6d2e48f5a2..3a3b1f70c1 100644 --- a/src/ch20-05-macros.md +++ b/src/ch20-05-macros.md @@ -110,7 +110,7 @@ one arm. Valid pattern syntax in macro definitions is different from the pattern syntax covered in Chapter 19 because macro patterns are matched against Rust code structure rather than values. Let’s walk through what the pattern pieces in -Listing 20-29 mean; for the full macro pattern syntax, see the [Rust +Listing 20-35 mean; for the full macro pattern syntax, see the [Rust Reference][ref]. First, we use a set of parentheses to encompass the whole pattern. We use a