mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
commit
ce5df2d84b
|
@ -24,8 +24,9 @@ impl Default for Person {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Your task is to complete this implementation in order for the line `let p1 =
|
// Your task is to complete this implementation in order for the line `let p1 =
|
||||||
// Person::from("Mark,20")` to compile Please note that you'll need to parse the
|
// Person::from("Mark,20")` to compile. Please note that you'll need to parse the
|
||||||
// age component into a `usize` with something like `"4".parse::<usize>()`. The
|
// age component into a `usize` with something like `"4".parse::<usize>()`. The
|
||||||
// outcome of this needs to be handled appropriately.
|
// outcome of this needs to be handled appropriately.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue