Update variant name (#58)

This commit is contained in:
Shinya Fujino authored and GitHub committed 2024-05-28 11:04:32 +02:00
1 parent 3020ef6c3f
commit 5140cd3b37
1 file changed
+1 -1
+1 -1
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.