diff options
| author | Swaroop C H <swaroop@swaroopch.com> | 2015-05-13 09:49:11 -0700 |
|---|---|---|
| committer | Swaroop C H <swaroop@swaroopch.com> | 2015-05-13 09:49:11 -0700 |
| commit | baef1327f4583a576f6bada990ead9e9555b11f9 (patch) | |
| tree | f6f42946c645a6be03aa9fa7de7fb8b7c5a120a1 /src | |
| parent | af41097b4906fdbd395b74f7de17f84f1666fe7a (diff) | |
| download | rust-baef1327f4583a576f6bada990ead9e9555b11f9.tar.gz rust-baef1327f4583a576f6bada990ead9e9555b11f9.zip | |
Add link to Debug trait
I don't recall reading about this `Debug` trait so far in the book.
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..d3e5d17ff40 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`](../core/fmt/trait.Debug.html) trait is what let's 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!` |
