summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorMo <76752051+mo8it@users.noreply.github.com>2024-03-27 17:28:35 +0100
committerGitHub <noreply@github.com>2024-03-27 17:28:35 +0100
commitc7cf3720bdb0197f4b1ed71cb52c5a39937e6b23 (patch)
tree1410d3d8953341b07db788dfd1a77a56436b35d6 /exercises
parentd2996b4cc6d664ba22ebedf08157888fca11d8ce (diff)
parentf35f63fa5763bde734ca086aa9e3398e8319539d (diff)
Merge pull request #1799 from NicolasRoelandt/patch-1
Remove confusing aside in 23_conversions/from_str.rs
Diffstat (limited to 'exercises')
-rw-r--r--exercises/23_conversions/from_str.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/exercises/23_conversions/from_str.rs b/exercises/23_conversions/from_str.rs
index 34472c3..e209347 100644
--- a/exercises/23_conversions/from_str.rs
+++ b/exercises/23_conversions/from_str.rs
@@ -44,10 +44,6 @@ enum ParsePersonError {
// 6. If while extracting the name and the age something goes wrong, an error
// should be returned
// If everything goes well, then return a Result of a Person object
-//
-// As an aside: `Box<dyn Error>` implements `From<&'_ str>`. This means that if
-// you want to return a string error message, you can do so via just using
-// return `Err("my error message".into())`.
impl FromStr for Person {
type Err = ParsePersonError;