Skip to content

Commit c7cf372

Browse files
authored
Merge pull request #1799 from NicolasRoelandt/patch-1
Remove confusing aside in 23_conversions/from_str.rs
2 parents d2996b4 + f35f63f commit c7cf372

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

exercises/23_conversions/from_str.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ enum ParsePersonError {
4444
// 6. If while extracting the name and the age something goes wrong, an error
4545
// should be returned
4646
// 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())`.
5147

5248
impl FromStr for Person {
5349
type Err = ParsePersonError;

0 commit comments

Comments
 (0)