We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2996b4 + f35f63f commit c7cf372Copy full SHA for c7cf372
exercises/23_conversions/from_str.rs
@@ -44,10 +44,6 @@ enum ParsePersonError {
44
// 6. If while extracting the name and the age something goes wrong, an error
45
// should be returned
46
// If everything goes well, then return a Result of a Person object
47
-//
48
-// As an aside: `Box<dyn Error>` implements `From<&'_ str>`. This means that if
49
-// you want to return a string error message, you can do so via just using
50
-// return `Err("my error message".into())`.
51
52
impl FromStr for Person {
53
type Err = ParsePersonError;
0 commit comments