Correct the description of Listing 5-6

It used to have the inverse of what it was actually doing!

Fixes #3488
This commit is contained in:
Chris Krycho 2024-04-03 13:44:25 -06:00
parent 204c6c40fd
commit 3e96c36763
1 changed files with 1 additions and 1 deletions

View File

@ -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}}
```
<span class="caption">Listing 5-6: Creating a new `User` instance using one of
<span class="caption">Listing 5-6: Creating a new `User` instance using all but one of
the values from `user1`</span>
Using struct update syntax, we can achieve the same effect with less code, as