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.
2 parents 3056930 + ee53b5b commit 2a81054Copy full SHA for 2a81054
src/flow_control/match/binding.md
@@ -18,8 +18,8 @@ fn main() {
18
// 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.
21
- n @ 1 ... 12 => println!("I'm a child of age {:?}", n),
22
- n @ 13 ... 19 => println!("I'm a teen of age {:?}", n),
+ n @ 1 ..= 12 => println!("I'm a child of age {:?}", n),
+ n @ 13 ..= 19 => println!("I'm a teen of age {:?}", n),
23
// Nothing bound. Return the result.
24
n => println!("I'm an old person of age {:?}", n),
25
}
0 commit comments