Skip to content

Commit e54f703

Browse files
Merge pull request #2485 from adrientremblay/master
Clarify code example ch6.3
2 parents 1fdea76 + a61cdbd commit e54f703

File tree

1 file changed

+1
-1
lines changed
  • listings/ch06-enums-and-pattern-matching/no-listing-12-if-let/src

1 file changed

+1
-1
lines changed

listings/ch06-enums-and-pattern-matching/no-listing-12-if-let/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {
2-
let some_u8_value = Some(0u8);
32
// ANCHOR: here
3+
let some_u8_value = Some(0u8);
44
if let Some(3) = some_u8_value {
55
println!("three");
66
}

0 commit comments

Comments
 (0)