fix(from_into.rs): typo

This commit is contained in:
Jihchi Lee 2020-04-30 21:53:50 +08:00 committed by GitHub
parent de65026db0
commit a901499ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
} }