Skip to content

Commit

Permalink
Use similar syntax in all arms
Browse files Browse the repository at this point in the history
See issue #17672. This was started in commit ee1cbb9, but there were a few more lines to update.
  • Loading branch information
O-I committed Oct 3, 2014
1 parent 060224a commit 816c56e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/doc/guide.md
Expand Up @@ -2084,7 +2084,7 @@ fn main() {
match cmp(input, secret_number) {
Less => println!("Too small!"),
Greater => println!("Too big!"),
Equal => { println!("You win!"); },
Equal => println!("You win!"),
}
}
Expand Down Expand Up @@ -2176,14 +2176,12 @@ fn main() {
.expect("Failed to read line");
let input_num: Option<uint> = from_str(input.as_slice());
println!("You guessed: {}", input_num);
match cmp(input_num, secret_number) {
Less => println!("Too small!"),
Greater => println!("Too big!"),
Equal => { println!("You win!"); },
Equal => println!("You win!"),
}
}
Expand Down Expand Up @@ -2241,7 +2239,7 @@ fn main() {
match cmp(num, secret_number) {
Less => println!("Too small!"),
Greater => println!("Too big!"),
Equal => { println!("You win!"); },
Equal => println!("You win!"),
}
}
Expand Down Expand Up @@ -2307,7 +2305,7 @@ fn main() {
match cmp(num, secret_number) {
Less => println!("Too small!"),
Greater => println!("Too big!"),
Equal => { println!("You win!"); },
Equal => println!("You win!"),
}
}
Expand Down Expand Up @@ -2382,7 +2380,7 @@ fn main() {
match cmp(num, secret_number) {
Less => println!("Too small!"),
Greater => println!("Too big!"),
Equal => { println!("You win!"); },
Equal => println!("You win!"),
}
}
}
Expand Down

0 comments on commit 816c56e

Please sign in to comment.