projects
/
rust_exercises.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3020ef6
)
Update variant name (#58)
author
Shinya Fujino
<shf0811@gmail.com>
Tue, 28 May 2024 09:04:32 +0000
(18:04 +0900)
committer
GitHub
<noreply@github.com>
Tue, 28 May 2024 09:04:32 +0000
(11:04 +0200)
book/src/05_ticket_v2/09_error_trait.md
patch
|
blob
|
history
diff --git
a/book/src/05_ticket_v2/09_error_trait.md
b/book/src/05_ticket_v2/09_error_trait.md
index
77f39fc
..
9eca502
100644
(file)
--- a/
book/src/05_ticket_v2/09_error_trait.md
+++ b/
book/src/05_ticket_v2/09_error_trait.md
@@
-2,7
+2,7
@@
## Error reporting
-In the previous exercise you had to destructure the `
InvalidTitle
` variant to extract the error message and
+In the previous exercise you had to destructure the `
TitleError
` variant to extract the error message and
pass it to the `panic!` macro.\
This is a (rudimentary) example of **error reporting**: transforming an error type into a representation that can be
shown to a user, a service operator, or a developer.