From 2aa835fa829b09571c99ab2cc1bcb9cc8d84f28a Mon Sep 17 00:00:00 2001 From: Andy Gaskell Date: Sun, 22 Sep 2019 19:19:21 -0500 Subject: [PATCH] Fix match range pattern usage --- src/flow_control/match.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flow_control/match.md b/src/flow_control/match.md index fb0f56e3d2..02a80670ff 100644 --- a/src/flow_control/match.md +++ b/src/flow_control/match.md @@ -15,7 +15,7 @@ fn main() { // Match several values 2 | 3 | 5 | 7 | 11 => println!("This is a prime"), // Match an inclusive range - 13...19 => println!("A teen"), + 13..=19 => println!("A teen"), // Handle the rest of cases _ => println!("Ain't special"), } @@ -31,4 +31,4 @@ fn main() { println!("{} -> {}", boolean, binary); } -``` \ No newline at end of file +```