Skip to content

Commit

Permalink
Merge pull request #1269 from agaskell/fix-depcrecated-range-pattern
Browse files Browse the repository at this point in the history
Fix match range pattern usage
  • Loading branch information
marioidival authored Sep 23, 2019
2 parents c9f5e17 + 2aa835f commit b217e82
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 b217e82

Please sign in to comment.