There was an error while loading. Please reload this page.
2 parents 1fdea76 + a61cdbd commit e54f703Copy full SHA for e54f703
1 file changed
listings/ch06-enums-and-pattern-matching/no-listing-12-if-let/src/main.rs
@@ -1,6 +1,6 @@
1
fn main() {
2
- let some_u8_value = Some(0u8);
3
// ANCHOR: here
+ let some_u8_value = Some(0u8);
4
if let Some(3) = some_u8_value {
5
println!("three");
6
}
0 commit comments