Skip to content

Commit a96f09b

Browse files
committed
Rollup merge of #25376 - swaroopch:patch-2, r=steveklabnik
I don't recall reading about this `Debug` trait so far in the book. Please ignore this PR if I have missed that part. r? @steveklabnik
2 parents 4c6527e + f6e5369 commit a96f09b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/trpl/error-handling.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ match version {
181181
This function makes use of an enum, `ParseError`, to enumerate the various
182182
errors that can occur.
183183

184+
The [`Debug`](../std/fmt/trait.Debug.html) trait is what lets us print the enum value using the `{:?}` format operation.
185+
184186
# Non-recoverable errors with `panic!`
185187

186188
In the case of an error that is unexpected and not recoverable, the `panic!`

0 commit comments

Comments
 (0)