]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch06-enums-and-pattern-matching/no-listing-12-if-let/src/main.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / doc / book / listings / ch06-enums-and-pattern-matching / no-listing-12-if-let / src / main.rs
index a2bc0e3dcaf7e3c39eed3fe4aa9ae3b1d4a96915..735086d4ed18a8137dbe5f0d1777b39c770afc6d 100644 (file)
@@ -1,8 +1,8 @@
 fn main() {
     // ANCHOR: here
-    let some_u8_value = Some(0u8);
-    if let Some(3) = some_u8_value {
-        println!("three");
+    let config_max = Some(3u8);
+    if let Some(max) = config_max {
+        println!("The maximum is configured to be {}", max);
     }
     // ANCHOR_END: here
 }