Skip to content

Commit 2aa835f

Browse files
committed
Fix match range pattern usage
1 parent 1f5e21a commit 2aa835f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flow_control/match.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn main() {
1515
// Match several values
1616
2 | 3 | 5 | 7 | 11 => println!("This is a prime"),
1717
// Match an inclusive range
18-
13...19 => println!("A teen"),
18+
13..=19 => println!("A teen"),
1919
// Handle the rest of cases
2020
_ => println!("Ain't special"),
2121
}
@@ -31,4 +31,4 @@ fn main() {
3131
3232
println!("{} -> {}", boolean, binary);
3333
}
34-
```
34+
```

0 commit comments

Comments
 (0)