mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 23:38:41 +08:00
9 lines
193 B
Rust
9 lines
193 B
Rust
fn main() {
|
|
// ANCHOR: here
|
|
let config_max = Some(3u8);
|
|
if let Some(max) = config_max {
|
|
println!("The maximum is configured to be {}", max);
|
|
}
|
|
// ANCHOR_END: here
|
|
}
|