use similar syntax in all arms

Fixes #17672
This commit is contained in:
Steve Klabnik 2014-10-01 17:12:29 -04:00
parent fc818ff33b
commit ee1cbb9c71

View File

@ -2030,7 +2030,7 @@ fn main() {
match cmp(input, secret_number) {
Less => println!("Too small!"),
Greater => println!("Too big!"),
Equal => { println!("You win!"); },
Equal => println!("You win!"),
}
}