From: Shinya Fujino Date: Tue, 28 May 2024 09:04:32 +0000 (+0900) Subject: Update variant name (#58) X-Git-Url: http://git.euphorik.ch/?a=commitdiff_plain;h=5140cd3b37b99f82471307ffe2351a88e8db6375;p=rust_exercises.git Update variant name (#58) --- 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 --- 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.