From c2cf105818d512280744e349d42919298b35b6ae Mon Sep 17 00:00:00 2001 From: George Gibbs Date: Wed, 15 Apr 2026 21:04:03 -0400 Subject: [PATCH] Fix incorrect line numbers in ch05-02 This matches them up to the nostarch version --- src/ch05-02-example-structs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch05-02-example-structs.md b/src/ch05-02-example-structs.md index fe59bb402e..b4487195d3 100644 --- a/src/ch05-02-example-structs.md +++ b/src/ch05-02-example-structs.md @@ -142,7 +142,7 @@ implementation of `Display` to use with `println!` and the `{}` placeholder. If we continue reading the errors, we’ll find this helpful note: ```text -{{#include ../listings/ch05-using-structs-to-structure-related-data/listing-05-11/output.txt:9:10}} +{{#include ../listings/ch05-using-structs-to-structure-related-data/listing-05-11/output.txt:12:13}} ``` Let’s try it! The `println!` macro call will now look like `println!("rect1 is @@ -160,7 +160,7 @@ Compile the code with this change. Drat! We still get an error: But again, the compiler gives us a helpful note: ```text -{{#include ../listings/ch05-using-structs-to-structure-related-data/output-only-01-debug/output.txt:9:10}} +{{#include ../listings/ch05-using-structs-to-structure-related-data/output-only-01-debug/output.txt:11:12}} ``` Rust _does_ include functionality to print out debugging information, but we