From 91aeab9ce9a18158f2a542ad5f75d5796aa80e43 Mon Sep 17 00:00:00 2001 From: Andrew Lygin Date: Mon, 25 May 2020 20:33:41 +0300 Subject: [PATCH] Person of age 0 is alive A person is of age 0 right after he or she was born, and before the first birthday. --- src/flow_control/match/binding.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flow_control/match/binding.md b/src/flow_control/match/binding.md index 0407b37774..ccbb7c2add 100644 --- a/src/flow_control/match/binding.md +++ b/src/flow_control/match/binding.md @@ -14,7 +14,7 @@ fn main() { println!("Tell me what type of person you are"); match age() { - 0 => println!("I'm not born yet I guess"), + 0 => println!("I haven't celebrated my first birthday yet"), // Could `match` 1 ..= 12 directly but then what age // would the child be? Instead, bind to `n` for the // sequence of 1 ..= 12. Now the age can be reported.