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