Merge pull request #315 from Tal-Chaim/patch-2

Fixed wrong print.
This commit is contained in:
Sunface 2022-10-11 10:12:30 +08:00 committed by GitHub
commit c73195ef2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ fn match_number(n: i32) {
println!("match 6 -> 10") println!("match 6 -> 10")
}, },
_ => { _ => {
println!("match 11 -> +infinite") println!("match -infinite -> 0 or 11 -> +infinite")
} }
} }
} }
@ -116,4 +116,4 @@ fn main() {
} }
```` ````
> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it > You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it