Skip to content

Commit

Permalink
Fix match range pattern usage
Browse files Browse the repository at this point in the history
  • Loading branch information
agaskell committed Sep 23, 2019
1 parent 1f5e21a commit 2aa835f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flow_control/match.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn main() {
// Match several values
2 | 3 | 5 | 7 | 11 => println!("This is a prime"),
// Match an inclusive range
13...19 => println!("A teen"),
13..=19 => println!("A teen"),
// Handle the rest of cases
_ => println!("Ain't special"),
}
Expand All @@ -31,4 +31,4 @@ fn main() {
println!("{} -> {}", boolean, binary);
}
```
```

0 comments on commit 2aa835f

Please sign in to comment.