From 5140cd3b37b99f82471307ffe2351a88e8db6375 Mon Sep 17 00:00:00 2001 From: Shinya Fujino Date: Tue, 28 May 2024 18:04:32 +0900 Subject: [PATCH] Update variant name (#58) --- book/src/05_ticket_v2/09_error_trait.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.45.2