mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-29 00:36:30 +00:00
Correct small typo in exercises/conversions/from_str.rs
This commit is contained in:
parent
afa661cff4
commit
166a53946c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ struct Person {
|
||||||
// 4. Extract the first element from the split operation and use it as the name
|
// 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
|
// 5. Extract the other element from the split operation and parse it into a `usize` as the age
|
||||||
// with something like `"4".parse::<usize>()`
|
// with something like `"4".parse::<usize>()`
|
||||||
// 5. If while extracting the name and the age something goes wrong, an error should be returned
|
// 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
|
// If everything goes well, then return a Result of a Person object
|
||||||
|
|
||||||
impl FromStr for Person {
|
impl FromStr for Person {
|
||||||
|
|
Loading…
Reference in a new issue