commit
c73195ef2d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue