mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
11 lines
182 B
Rust
Executable File
11 lines
182 B
Rust
Executable File
fn main() {
|
|
// ANCHOR: here
|
|
let x = 5;
|
|
|
|
match x {
|
|
1..=5 => println!("one through five"),
|
|
_ => println!("something else"),
|
|
}
|
|
// ANCHOR_END: here
|
|
}
|