Skip to content

Commit

Permalink
Merge pull request #1991 from BooleanCat/no-debug-print
Browse files Browse the repository at this point in the history
ch18-03: no need to debug print destructured int
  • Loading branch information
steveklabnik authored Oct 14, 2019
2 parents aa339f7 + 18b02e1 commit b227d5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,11 @@ fn main() {

match x {
Some(50) => println!("Got 50"),
Some(n) if n == y => println!("Matched, n = {:?}", n),
Some(n) if n == y => println!("Matched, n = {}", n),
_ => println!("Default case, x = {:?}", x),
}

println!("at the end: x = {:?}, y = {:?}", x, y);
println!("at the end: x = {:?}, y = {}", x, y);
}
```

Expand Down

0 comments on commit b227d5e

Please sign in to comment.