From dd29c3a52c1cd0212444b0c5420b6c7f2ddb56bd Mon Sep 17 00:00:00 2001 From: theidexisted Date: Tue, 6 Jul 2021 18:00:33 +0800 Subject: [PATCH] Simplify example code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ecaf8e0b..f1b3fb67 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ fn main() { 0 => println!("No verbose info"), 1 => println!("Some verbose info"), 2 => println!("Tons of verbose info"), - 3 | _ => println!("Don't be crazy"), + _ => println!("Don't be crazy"), } // You can handle information about subcommands by requesting their matches by name @@ -258,7 +258,7 @@ fn main() { 0 => println!("Verbose mode is off"), 1 => println!("Verbose mode is kind of on"), 2 => println!("Verbose mode is on"), - 3 | _ => println!("Don't be crazy"), + _ => println!("Don't be crazy"), } // You can check for the existence of subcommands, and if found use their