Skip to content

Commit baef132

Browse files
committed
Add link to Debug trait
I don't recall reading about this `Debug` trait so far in the book.
1 parent af41097 commit baef132

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`](../core/fmt/trait.Debug.html) trait is what let's 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)