diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-05-13 16:51:29 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-05-13 16:51:29 -0400 |
| commit | a96f09bf52b169e1ddcb7edf4e7bdd257da3725d (patch) | |
| tree | 78da2bf3f224896c362e17215b3b26dcc9100adb /src | |
| parent | 4c6527e80717bd374520158a82a756f3a25b150c (diff) | |
| parent | f6e5369e53f5444240aa983c6e6be6725932e399 (diff) | |
| download | rust-a96f09bf52b169e1ddcb7edf4e7bdd257da3725d.tar.gz rust-a96f09bf52b169e1ddcb7edf4e7bdd257da3725d.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/error-handling.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md index b3689968b7f..dcaf698fd3c 100644 --- a/src/doc/trpl/error-handling.md +++ b/src/doc/trpl/error-handling.md @@ -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!` |
