Skip to content

Commit 5f7c89f

Browse files
authored
fix(from_str): Correct typos
typos in the comments
1 parent ab57c26 commit 5f7c89f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/conversions/from_str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ struct Person {
1313
// I AM NOT DONE
1414

1515
// 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
1717
// 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
1919
// 4. Extract the first element from the split operation and use it as the name
2020
// 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
2323
// If everything goes well, then return a Result of a Person object
2424

2525
impl FromStr for Person {

0 commit comments

Comments
 (0)