mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
chore: Change point to comma in from_into.rs
A typo in the fn test_bad_age() hint message had a point rather than comma Prev: // Test that "Mark.twenty" Current: // Test that "Mark,twenty"
This commit is contained in:
parent
a75300b8c7
commit
2933f51949
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ mod tests {
|
|||
}
|
||||
#[test]
|
||||
fn test_bad_age() {
|
||||
// Test that "Mark.twenty" will return the default person due to an error in parsing age
|
||||
// Test that "Mark,twenty" will return the default person due to an error in parsing age
|
||||
let p = Person::from("Mark,twenty");
|
||||
assert_eq!(p.name, "John");
|
||||
assert_eq!(p.age, 30);
|
||||
|
|
Loading…
Reference in a new issue