We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
...
1 parent d90bbb7 commit b4674bcCopy full SHA for b4674bc
src/flow_control/match/binding.md
@@ -15,9 +15,9 @@ fn main() {
15
16
match age() {
17
0 => println!("I'm not born yet I guess"),
18
- // Could `match` 1 ... 12 directly but then what age
+ // Could `match` 1 ..= 12 directly but then what age
19
// would the child be? Instead, bind to `n` for the
20
- // sequence of 1 .. 12. Now the age can be reported.
+ // sequence of 1 ..= 12. Now the age can be reported.
21
n @ 1 ..= 12 => println!("I'm a child of age {:?}", n),
22
n @ 13 ..= 19 => println!("I'm a teen of age {:?}", n),
23
// Nothing bound. Return the result.
0 commit comments