mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
12 lines
202 B
Rust
12 lines
202 B
Rust
fn main() {
|
|
// ANCHOR: here
|
|
let x = 1;
|
|
|
|
match x {
|
|
1 | 2 => println!("one or two"),
|
|
3 => println!("three"),
|
|
_ => println!("anything"),
|
|
}
|
|
// ANCHOR_END: here
|
|
}
|