File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ struct Person {
13
13
// I AM NOT DONE
14
14
15
15
// Steps:
16
- // 1. If the length of the provided string is 0 an error should be returned
16
+ // 1. If the length of the provided string is 0, an error should be returned
17
17
// 2. Split the given string on the commas present in it
18
- // 3. Only 2 elements should returned from the split, otherwise return an error
18
+ // 3. Only 2 elements should be returned from the split, otherwise return an error
19
19
// 4. Extract the first element from the split operation and use it as the name
20
20
// 5. Extract the other element from the split operation and parse it into a `usize` as the age
21
- // with something like `"4".parse::<usize>()`.
22
- // 5. If while extracting the name and the age something goes wrong an error should be returned
21
+ // with something like `"4".parse::<usize>()`
22
+ // 5. If while extracting the name and the age something goes wrong, an error should be returned
23
23
// If everything goes well, then return a Result of a Person object
24
24
25
25
impl FromStr for Person {
You can’t perform that action at this time.
0 commit comments