summaryrefslogtreecommitdiff
path: root/exercises/conversions
diff options
context:
space:
mode:
authorJirka Kremser <535866+jkremser@users.noreply.github.com>2021-02-21 21:50:17 +0100
committerGitHub <noreply@github.com>2021-02-21 21:50:17 +0100
commit5f7c89f85db1f33da01911eaa479c3a2d4721678 (patch)
treeee892b4514e187b03955ea9fb868e79300d4e469 /exercises/conversions
parentab57c26cf9199eca7937a75712079d908e5d330d (diff)
fix(from_str): Correct typos
typos in the comments
Diffstat (limited to 'exercises/conversions')
-rw-r--r--exercises/conversions/from_str.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/conversions/from_str.rs b/exercises/conversions/from_str.rs
index 558a903..41fccd7 100644
--- a/exercises/conversions/from_str.rs
+++ b/exercises/conversions/from_str.rs
@@ -13,13 +13,13 @@ struct Person {
// I AM NOT DONE
// Steps:
-// 1. If the length of the provided string is 0 an error should be returned
+// 1. If the length of the provided string is 0, an error should be returned
// 2. Split the given string on the commas present in it
-// 3. Only 2 elements should returned from the split, otherwise return an error
+// 3. Only 2 elements should be returned from the split, otherwise return an error
// 4. Extract the first element from the split operation and use it as the name
// 5. Extract the other element from the split operation and parse it into a `usize` as the age
-// with something like `"4".parse::<usize>()`.
-// 5. If while extracting the name and the age something goes wrong an error should be returned
+// with something like `"4".parse::<usize>()`
+// 5. 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
impl FromStr for Person {