Update variant name (#58)

This commit is contained in:
Shinya Fujino 2024-05-28 18:04:32 +09:00 committed by GitHub
parent 3020ef6c3f
commit 5140cd3b37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.