Rollup merge of #27535 - steveklabnik:for_jhun, r=alexcrichton

'work' can refer to the game itself, ie, 'this compiles but the game isn't finished,'
so 'compile' is a more clear way to describe the problem.

Thanks jhun on irc
This commit is contained in:
Steve Klabnik 2015-08-05 15:09:50 -04:00
commit 3a2af87363

View File

@ -533,7 +533,7 @@ Great! Next up: lets compare our guess to the secret guess.
# Comparing guesses # Comparing guesses
Now that weve got user input, lets compare our guess to the random guess. Now that weve got user input, lets compare our guess to the random guess.
Heres our next step, though it doesnt quite work yet: Heres our next step, though it doesnt quite compile yet:
```rust,ignore ```rust,ignore
extern crate rand; extern crate rand;
@ -617,7 +617,7 @@ match guess.cmp(&secret_number) {
If its `Less`, we print `Too small!`, if its `Greater`, `Too big!`, and if If its `Less`, we print `Too small!`, if its `Greater`, `Too big!`, and if
`Equal`, `You win!`. `match` is really useful, and is used often in Rust. `Equal`, `You win!`. `match` is really useful, and is used often in Rust.
I did mention that this wont quite work yet, though. Lets try it: I did mention that this wont quite compile yet, though. Lets try it:
```bash ```bash
$ cargo build $ cargo build