From 185c11c64a02911fa9db2bc17ea98c52fe7be081 Mon Sep 17 00:00:00 2001 From: Jon Earnshaw Date: Tue, 22 Nov 2022 02:30:10 +0000 Subject: [PATCH] corrects caption 5-6 referencing multiple values of user1 --- src/ch05-01-defining-structs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch05-01-defining-structs.md b/src/ch05-01-defining-structs.md index d258d89cc5..7295a00e06 100644 --- a/src/ch05-01-defining-structs.md +++ b/src/ch05-01-defining-structs.md @@ -120,7 +120,7 @@ otherwise use the same values from `user1` that we created in Listing 5-2. {{#rustdoc_include ../listings/ch05-using-structs-to-structure-related-data/listing-05-06/src/main.rs:here}} ``` -Listing 5-6: Creating a new `User` instance using one of +Listing 5-6: Creating a new `User` instance using some of the values from `user1` Using struct update syntax, we can achieve the same effect with less code, as