book/listings/ch06-enums-and-pattern-matc.../listing-06-06/src/main.rs

10 lines
208 B
Rust

fn main() {
// ANCHOR: here
let config_max = Some(3u8);
match config_max {
Some(max) => println!("The maximum is configured to be {max}"),
_ => (),
}
// ANCHOR_END: here
}