Skip to content

Commit

Permalink
Update explanation according to code listing
Browse files Browse the repository at this point in the history
  • Loading branch information
damoasda authored and carols10cents committed May 13, 2024
1 parent 698a756 commit 03178db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch05-02-example-structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ If we continue reading the errors, we’ll find this helpful note:
```

Let’s try it! The `println!` macro call will now look like `println!("rect1 is
{:?}", rect1);`. Putting the specifier `:?` inside the curly brackets tells
{rect1:?}");`. Putting the specifier `:?` inside the curly brackets tells
`println!` we want to use an output format called `Debug`. The `Debug` trait
enables us to print our struct in a way that is useful for developers so we can
see its value while we’re debugging our code.
Expand Down

0 comments on commit 03178db

Please sign in to comment.