From ee53b5b59acad7c393af4c822a26fa64e58e7327 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Mon, 5 Aug 2019 18:43:44 +0000 Subject: [PATCH] flow_control/match/binding.md: `...' -> `..=' --- src/flow_control/match/binding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flow_control/match/binding.md b/src/flow_control/match/binding.md index 385035dc15..d3e5d46fdb 100644 --- a/src/flow_control/match/binding.md +++ b/src/flow_control/match/binding.md @@ -18,8 +18,8 @@ fn main() { // 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. - n @ 1 ... 12 => println!("I'm a child of age {:?}", n), - 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), // Nothing bound. Return the result. n => println!("I'm an old person of age {:?}", n), }