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
This commit is contained in:
commit
a96f09bf52
1 changed files with 2 additions and 0 deletions
|
|
@ -181,6 +181,8 @@ match version {
|
|||
This function makes use of an enum, `ParseError`, to enumerate the various
|
||||
errors that can occur.
|
||||
|
||||
The [`Debug`](../std/fmt/trait.Debug.html) trait is what lets us print the enum value using the `{:?}` format operation.
|
||||
|
||||
# Non-recoverable errors with `panic!`
|
||||
|
||||
In the case of an error that is unexpected and not recoverable, the `panic!`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue