Skip to content

Commit 7aa8212

Browse files
authored
Merge pull request #1348 from alygin/patch-2
Person of age 0 is alive
2 parents 30fa1f6 + 91aeab9 commit 7aa8212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flow_control/match/binding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414
println!("Tell me what type of person you are");
1515
1616
match age() {
17-
0 => println!("I'm not born yet I guess"),
17+
0 => println!("I haven't celebrated my first birthday yet"),
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.

0 commit comments

Comments
 (0)