mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 08:16:29 +00:00
fix(from_into.rs): typo
This commit is contained in:
parent
de65026db0
commit
a901499ede
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ impl Default for Person {
|
||||||
// 3. Extract the first element from the split operation and use it as the name
|
// 3. Extract the first element from the split operation and use it as the name
|
||||||
// 4. Extract the other element from the split operation and parse it into a `usize` as the age
|
// 4. Extract the other element from the split operation and parse it into a `usize` as the age
|
||||||
// If while parsing the age, something goes wrong, then return the default of Person
|
// If while parsing the age, something goes wrong, then return the default of Person
|
||||||
// Otherwise, then return an instantiated Person onject with the results
|
// Otherwise, then return an instantiated Person object with the results
|
||||||
impl From<&str> for Person {
|
impl From<&str> for Person {
|
||||||
fn from(s: &str) -> Person {
|
fn from(s: &str) -> Person {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue