Skip to content

Commit 2a81054

Browse files
authored
Merge pull request #1233 from rusty-snake/patch-1
flow_control/match/binding.md: `...' -> `..='
2 parents 3056930 + ee53b5b commit 2a81054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flow_control/match/binding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ fn main() {
1818
// Could `match` 1 ... 12 directly but then what age
1919
// would the child be? Instead, bind to `n` for the
2020
// 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),
21+
n @ 1 ..= 12 => println!("I'm a child of age {:?}", n),
22+
n @ 13 ..= 19 => println!("I'm a teen of age {:?}", n),
2323
// Nothing bound. Return the result.
2424
n => println!("I'm an old person of age {:?}", n),
2525
}

0 commit comments

Comments
 (0)